3
0
Fork 0
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:
Dragory 2020-10-16 02:01:07 +03:00
parent 0c73587b25
commit 3aada93a80
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
8 changed files with 34 additions and 7 deletions

View file

@ -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;
}

View file

@ -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;
}