feat: split ignores into 'ignore messages' and 'ignore entities'
This commit is contained in:
parent
d48ab7e16e
commit
0cac964aa6
32 changed files with 730 additions and 488 deletions
|
|
@ -53,7 +53,13 @@ public class MessageCreateResponder(
|
|||
var guild = await guildRepository.GetAsync(msg.GuildID);
|
||||
// The guild needs to have enabled at least one of the message logging events,
|
||||
// and the channel must not be ignored, to store the message.
|
||||
if (guild.IsMessageIgnored(msg.ChannelID, msg.Author.ID))
|
||||
if (
|
||||
guild.IsMessageIgnored(
|
||||
msg.ChannelID,
|
||||
msg.Author.ID,
|
||||
msg.Member.OrDefault()?.Roles.OrDefault()
|
||||
)
|
||||
)
|
||||
{
|
||||
await messageRepository.IgnoreMessageAsync(msg.ID.Value);
|
||||
return Result.Success;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue