delete method

Future<bool> delete()

Deletes this

final GuildChannel channel = guild.channels.cache.getOrFail('240561194958716924');
await channel.delete()

Implementation

Future<bool> delete () async {
  Http http = ioc.singleton(Service.http);
  Response response = await http.destroy(url: '/channels/$id');

  guild.channels.cache.remove(this);
  return response.statusCode == 200;
}