mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Add sticker_spam automod trigger
This commit is contained in:
parent
0c73587b25
commit
3aada93a80
8 changed files with 34 additions and 7 deletions
|
@ -46,6 +46,7 @@ export class GuildSavedMessages extends BaseGuildRepository {
|
|||
|
||||
if (msg.attachments.length) data.attachments = msg.attachments;
|
||||
if (msg.embeds.length) data.embeds = msg.embeds;
|
||||
if (msg.stickers?.length) data.stickers = msg.stickers;
|
||||
|
||||
return data;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { Column, Entity, PrimaryColumn } from "typeorm";
|
||||
import { createEncryptedJsonTransformer } from "../encryptedJsonTransformer";
|
||||
import { Sticker } from "eris";
|
||||
|
||||
export interface ISavedMessageData {
|
||||
attachments?: object[];
|
||||
|
@ -9,6 +10,7 @@ export interface ISavedMessageData {
|
|||
};
|
||||
content: string;
|
||||
embeds?: object[];
|
||||
stickers?: Sticker[];
|
||||
timestamp: number;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue