Reputation: 35
The title says it all, I want to set the nickname of my Discord bot. I've tried to Google this but I can't find anything.
Upvotes: 2
Views: 5091
Reputation: 530
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";
});
Upvotes: 4