delete method

Future<bool> delete()

Deletes this

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

Implementation

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

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