标题说明了一切,我想设置我的 Discord 机器人的昵称。我试图谷歌这个,但我找不到任何东西。
0.9:
var server = discordClient.GetServer(01234567689);
var user = server.GetUser(discordClient.CurrentUser.Id);
await user.Edit(nickname: "The bots new nickname");
1.0:
var guild = discordClient.GetGuild(0123456789);
var user = guild.GetUser(discordClient.CurrentUser.Id);
await user.ModifyAsync(x => {
x.Nickname = "The bots new nickname";
});