delete method Null safety

Future<void> delete()

Deletes channel if guild channel or closes DM if DM channel

Implementation

Future<void> delete() => this.client.httpEndpoints.deleteChannel(this.id);