Type aliases
ActivityType
AdvancedMessageContent
Advanced
MessageContent: { allowedMentions?: AllowedMentions; content?: string; embed?: EmbedOptions; flags?: number; messageReferenceID?: string; tts?: boolean }
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"
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
InviteChannel
MessageContent
MessageWebhookContent
Message
WebhookContent: Pick<WebhookPayload, "content" | "embeds" | "file" | "allowedMentions">
PermissionType
PermissionType: "role" | "member"
PossiblyUncachedGuild
Possibly
UncachedGuild: Guild | { id: string }
PossiblyUncachedMessage
Possibly
UncachedMessage: Message | { channel: TextableChannel | { guild?: { id: string }; id: string }; guildID?: string; id: string }
PossiblyUncachedTextable
Possibly
UncachedTextable: Textable | { id: string }
PossiblyUncachedTextableChannel
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