removeIcon method

Future<void> removeIcon()

Remove the icon of this

Example :

await guild.removeIcon();

Implementation

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

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