Automod work vol 2

This commit is contained in:
Dragory 2020-07-27 21:51:03 +03:00
parent f657b169df
commit 0e9f65e0d5
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
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;
}