removeIcon method

Future<void> removeIcon()

Remove the icon of this

Example :

await guild.removeIcon();

Implementation

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

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