removeIcon method

Future<void> removeIcon()

Remove the icon of this

Example :

await guild.removeIcon();

Implementation

Future<void> removeIcon () async {
  Response response = await ioc.use<DiscordApiHttpService>().patch(url: "/guilds/$id")
    .payload({ 'icon': null })
    .build();

  if (response.statusCode == 200) {
    _icon = null;
  }
}