setName method
Used to update the name of this
await guild.setName('Guild name');
Implementation
Future<void> setName (String name) async {
Response response = await ioc.use<DiscordApiHttpService>().patch(url: "/guilds/$id")
.payload({ 'name': name })
.build();
if (response.statusCode == 200) {
_name = name;
}
}