Automod work vol 2
This commit is contained in:
parent
f657b169df
commit
0e9f65e0d5
12 changed files with 420 additions and 59 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue