3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 00:05:04 +00:00

Automod work vol 2

This commit is contained in:
Dragory 2020-07-27 21:51:03 +03:00
parent c23f37d991
commit 7113d3953e
12 changed files with 420 additions and 59 deletions

View file

@ -1,4 +1,5 @@
import {
AnyInvite,
Attachment,
ChannelInvite,
Client,
@ -9,6 +10,7 @@ import {
GuildAuditLog,
GuildAuditLogEntry,
GuildChannel,
GuildInvite,
Member,
Message,
MessageContent,
@ -1216,3 +1218,7 @@ export function trimPluginDescription(str) {
export function isFullMessage(msg: PossiblyUncachedMessage): msg is Message {
return (msg as Message).createdAt != null;
}
export function isGuildInvite(invite: AnyInvite): invite is GuildInvite {
return (invite as GuildInvite).guild != null;
}