This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private async Task LogDeletedMessage(Cacheable<IMessage, ulong> cachedMessage, ISocketMessageChannel channel) | |
| { | |
| var logChannel = (_client.GetChannel(_guildLogs.GetGuildLogs(((SocketTextChannel)channel).Guild.Id).MessageDeletedChannelId)) as SocketTextChannel; | |
| if (logChannel.Id == channel.Id) { return; } | |
| if (logChannel.Guild != ((SocketTextChannel) channel).Guild) | |
| { | |
| await channel.SendMessageAsync("The log channel for deleted messages must be in this server, please change it."); | |
| return; | |
| } | |
| // TODO: Check if it was command && if the guild disabled logging commands |