Exemplo n.º 1
0
 public Task <bool> TryBlockEarly(IGuild guild, IUserMessage userMessage, bool realExecution = true)
 => Task.FromResult(!_creds.IsOwner(userMessage.Author) && (guild != null && BlacklistedGuilds.Contains(guild.Id) || BlacklistedChannels.Contains(userMessage.Channel.Id) || BlacklistedUsers.Contains(userMessage.Author.Id)));
Exemplo n.º 2
0
 public Task <bool> TryBlockEarly(IGuild guild, IUserMessage usrMsg)
 => Task.FromResult((guild != null && BlacklistedGuilds.Contains(guild.Id)) ||
                    BlacklistedChannels.Contains(usrMsg.Channel.Id) ||
                    BlacklistedUsers.Contains(usrMsg.Author.Id));
Exemplo n.º 3
0
 public Task <bool> RunBehavior(DiscordSocketClient _, IGuild guild, IUserMessage usrMsg)
 => Task.FromResult((guild != null && BlacklistedGuilds.Contains(guild.Id)) ||
                    BlacklistedChannels.Contains(usrMsg.Channel.Id) ||
                    BlacklistedUsers.Contains(usrMsg.Author.Id));