public async Task RegisterChannel(SocketGuildChannel channel) { if (channel is SocketCategoryChannel) { return; } await nixProvider.Channels.Store(channel.GetNixChannel()); }
public async Task <NixChannel> Get(SocketGuildChannel channel) { NixChannel nixChannel = await Get(channel.Id, channel.Guild.Id); if (nixChannel is null) { nixChannel = channel.GetNixChannel(); await Store(nixChannel); return(nixChannel); } return(nixChannel); }
public async Task UnregisterChannel(SocketGuildChannel channel) { await nixProvider.Channels.Remove(channel.GetNixChannel()); }