Hey 👋
I'm currently working on a plugin that requires to know when a channel gets deleted, so I've added this hook in order to make it work.
private void Discord_ChannelDelete(Channel channel)
{
// Delete all subscriptions to this channel for all plugins
List<ChannelSubscription> subscriptions = _channelSubscriptions[channel.id];
subscriptions?.RemoveAll(s => true);
// Delete the channel from the guild if the Channel was deleted by an user from the Discord App
Channel deletedChannel = _discordServer.channels.First(c => c.id == channel.id);
_discordServer.channels.Remove(deletedChannel);
Interface.Oxide.CallHook("OnChannelDelete", channel);
}