removeIcon method

Future<void> removeIcon()

Remove the icon of this

await guild.removeIcon();

Implementation

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

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