setUsername method
Update the username of this
Example :
await member.setUsername('John Doe');
Implementation
Future<void> setUsername (String name) async {
Response response = await ioc.use<HttpService>().patch(url: "/guilds/${guild.id}/members/${user.id}", payload: { 'nick': name });
if (response.statusCode == 200) {
_nickname = name;
}
}