Add sticker_spam automod trigger
This commit is contained in:
parent
0c73587b25
commit
3aada93a80
8 changed files with 34 additions and 7 deletions
|
@ -126,4 +126,21 @@ export function addRecentActionsFromMessage(pluginData: GuildPluginData<AutomodP
|
|||
count: characterCount,
|
||||
});
|
||||
}
|
||||
|
||||
const stickerCount = (context.message.data.stickers || []).length;
|
||||
if (stickerCount) {
|
||||
pluginData.state.recentActions.push({
|
||||
context,
|
||||
type: RecentActionType.Sticker,
|
||||
identifier: globalIdentifier,
|
||||
count: stickerCount,
|
||||
});
|
||||
|
||||
pluginData.state.recentActions.push({
|
||||
context,
|
||||
type: RecentActionType.Sticker,
|
||||
identifier: perChannelIdentifier,
|
||||
count: stickerCount,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue