Type aliases
ActivityType
AdvancedMessageContent
Type declaration
-
-
Optional content?: string
-
-
Optional flags?: number
-
-
Optional messageReferenceID?: string
-
Optional tts?: boolean
AnyChannel
AnyGuildChannel
AnyVoiceChannel
BotActivityType
BotActivityType: 0 | 1 | 2 | 3 | 5
ChannelTypes
CommandGenerator
CommandGeneratorFunction
ConverterCommand
ConverterCommand: "./ffmpeg" | "./avconv" | "ffmpeg" | "avconv"
DefaultNotifications
DefaultNotifications: 0 | 1
ExplicitContentFilter
ExplicitContentFilter: 0 | 1 | 2
FriendSuggestionReasons
FriendSuggestionReasons: { name: string; platform_type: string; type: number }[]
GeneratorFunctionReturn
GenericCheckFunction
Generic
CheckFunction<T>: (msg: Message) => T | Promise<T>
Type parameters
Type declaration
-
-
Parameters
Returns T | Promise<T>
GuildTextableChannel
ImageFormat
ImageFormat: "jpg" | "jpeg" | "png" | "gif" | "webp"
IntentStrings
InteractionType
InteractionType: 1 | 2
InviteChannel
MFALevel
MFALevel: 0 | 1
MessageContent
MessageWebhookContent
Message
WebhookContent: Pick<WebhookPayload, "content" | "embeds" | "file" | "allowedMentions">
PermissionType
PermissionType: "role" | "member"
PossiblyUncachedGuild
PossiblyUncachedMessage
PossiblyUncachedTextable
PossiblyUncachedTextableChannel
PremiumTier
PremiumTier: 0 | 1 | 2 | 3
ReactionButtonsFilterFunction
Reaction
ButtonsFilterFunction: (msg: Message, emoji: Emoji, userID: string) => boolean
Type declaration
-
-
Parameters
Returns boolean
ReactionButtonsGenerator
ReactionButtonsGeneratorFunction
Type declaration
-
-
Parameters
-
-
args: string[]
-
userID: string
ReconnectDelayFunction
ReconnectDelayFunction: (lastDelay: number, attempts: number) => number
Type declaration
-
- (lastDelay: number, attempts: number): number
-
Parameters
-
lastDelay: number
-
attempts: number
Returns number
RequestMethod
RequestMethod: "GET" | "PATCH" | "DELETE" | "POST" | "PUT"
Status
Status: "online" | "idle" | "dnd" | "offline"
TextableChannel
Uncached
Uncached: { id: string }
VerificationLevel
VerificationLevel: 0 | 1 | 2 | 3 | 4
VideoQualityMode
VideoQualityMode: 1 | 2