public async Task Remove(ulong guildId, string serverName, ulong channelId) { Server server = await this.serverService.Get(guildId, serverName); ChatChannelServer chatChannelServer = await this.chatChannelServerRepository.Get(server.Id, channelId); await this.chatChannelServerRepository.Remove(server.Id, channelId); Removed?.Invoke(this, chatChannelServer); }
public async Task <bool> Exists(ulong guildId, string serverName, ulong channelId) { Server server = await this.serverService.Get(guildId, serverName); if (server == null) { return(false); } ChatChannelServer chatChannelServer = await this.chatChannelServerRepository.Get(server.Id, channelId); return(chatChannelServer != null); }