public async Task <CachedTextChannel> GetLoggingChannelAsync(ulong guildId, LogType type)
        {
            if (!(await LoggingChannels.FindAsync(guildId, type) is { } logChannel))
            {
                return(null);
            }

            return(_client.GetGuild(guildId).GetTextChannel(logChannel.Id));
        }
Ejemplo n.º 2
0
 internal CRTPLog(LoggingChannels channel, LoggingCmd command, byte index = 0)
     : this((byte)channel)
 {
     Index = index;
     Command = (byte) command;
 }