Constructors
constructor
-
Parameters
-
token: string
-
options: ClientOptions
-
Methods
acceptAgreements
- acceptAgreements(privacy?: boolean, terms?: boolean): Promise<any>
-
Parameters
-
privacy: boolean = true
-
terms: boolean = true
Returns Promise<any>
acceptInvite
- acceptInvite(code: string): Promise<any>
-
Parameters
Returns Promise<any>
acceptTeamInvite
- acceptTeamInvite(token: string): Promise<any>
-
Parameters
Returns Promise<any>
acceptTemplate
- acceptTemplate(templateId: string, options: AcceptTemplate): Promise<Guild>
-
Parameters
-
templateId: string
-
options: AcceptTemplate
Returns Promise<Guild>
ackChannelMessage
- ackChannelMessage(channelId: string, messageId: string, token: string): Promise<any>
-
Parameters
-
channelId: string
-
messageId: string
-
token: string
Returns Promise<any>
ackChannelPins
- ackChannelPins(channelId: string): Promise<any>
-
Parameters
Returns Promise<any>
ackGuild
- ackGuild(guildId: string): Promise<any>
-
Parameters
Returns Promise<any>
activateOauth2ApplicationLicense
- activateOauth2ApplicationLicense(applicationId: string, options: ActivateOauth2ApplicationLicense): Promise<any>
-
Parameters
-
applicationId: string
-
options: ActivateOauth2ApplicationLicense
Returns Promise<any>
addConnection
- addConnection(platform: string, accountId: string, options: AddConnection): Promise<any>
-
Parameters
-
platform: string
-
accountId: string
-
options: AddConnection
Returns Promise<any>
addGuildMember
- addGuildMember(guildId: string, userId: string, options: AddGuildMember): Promise<any>
-
Parameters
-
guildId: string
-
userId: string
-
options: AddGuildMember
Returns Promise<any>
addGuildMemberRole
- addGuildMemberRole(guildId: string, userId: string, roleId: string, options?: AddGuildMemberRole): Promise<any>
-
Parameters
-
guildId: string
-
userId: string
-
roleId: string
-
options: AddGuildMemberRole = {}
Returns Promise<any>
addOauth2ApplicationWhitelistUser
- addOauth2ApplicationWhitelistUser(applicationId: string, options: AddOauth2ApplicationWhitelistUser): Promise<any>
-
Parameters
-
applicationId: string
-
options: AddOauth2ApplicationWhitelistUser
Returns Promise<any>
addPinnedMessage
- addPinnedMessage(channelId: string, messageId: string): Promise<any>
-
Parameters
-
channelId: string
-
messageId: string
Returns Promise<any>
addRecipient
- addRecipient(channelId: string, userId: string): Promise<any>
-
Parameters
-
channelId: string
-
userId: string
Returns Promise<any>
addTeamMember
- addTeamMember(teamId: string, options: AddTeamMember): Promise<any>
-
Parameters
-
teamId: string
-
options: AddTeamMember
Returns Promise<any>
addThreadMember
- addThreadMember(channelId: string, userId: string): Promise<any>
-
Parameters
-
channelId: string
-
userId: string
Returns Promise<any>
authorizeIpAddress
- authorizeIpAddress(options: AuthorizeIpAddress): Promise<any>
-
Parameters
-
options: AuthorizeIpAddress
Returns Promise<any>
beginGuildPrune
- beginGuildPrune(guildId: string, options?: BeginGuildPrune): Promise<any>
-
Parameters
-
guildId: string
-
options: BeginGuildPrune = {}
Returns Promise<any>
bulkDeleteMessages
- bulkDeleteMessages(channelId: string, messageIds: string[]): Promise<any>
-
Parameters
-
channelId: string
-
messageIds: string[]
Returns Promise<any>
bulkOverwriteApplicationCommands
-
Parameters
-
applicationId: string
-
commands: CreateApplicationCommand[]
bulkOverwriteApplicationGuildCommands
- bulkOverwriteApplicationGuildCommands(applicationId: string, guildId: string, commands: CreateApplicationGuildCommand[]): Promise<BaseCollection<string, ApplicationCommand>>
-
Parameters
-
applicationId: string
-
guildId: string
-
commands: CreateApplicationGuildCommand[]
bulkOverwriteApplicationGuildCommandsPermissions
- bulkOverwriteApplicationGuildCommandsPermissions(applicationId: string, guildId: string, permissions: BulkOverwriteApplicationGuildCommandsPermissions): Promise<BaseCollection<string, ApplicationCommandPermissions>>
-
Parameters
-
applicationId: string
-
guildId: string
-
permissions: BulkOverwriteApplicationGuildCommandsPermissions
connectionCallback
- connectionCallback(platform: string, options: ConnectionCallback): Promise<any>
-
Parameters
-
platform: string
-
options: ConnectionCallback
Returns Promise<any>
createApplicationCommand
- createApplicationCommand(applicationId: string, options: CreateApplicationCommand): Promise<any>
-
Parameters
-
applicationId: string
-
options: CreateApplicationCommand
Returns Promise<any>
createApplicationGuildCommand
- createApplicationGuildCommand(applicationId: string, guildId: string, options: CreateApplicationCommand): Promise<any>
-
Parameters
-
applicationId: string
-
guildId: string
-
options: CreateApplicationCommand
Returns Promise<any>
createApplicationNews
- createApplicationNews(options: CreateApplicationNews): Promise<ApplicationNews>
-
Parameters
-
options: CreateApplicationNews
createChannelInvite
- createChannelInvite(channelId: string, options?: CreateChannelInvite): Promise<Invite>
-
Parameters
-
channelId: string
-
options: CreateChannelInvite = {}
Returns Promise<Invite>
createChannelMessageThread
- createChannelMessageThread(channelId: string, messageId: string, options: CreateChannelMessageThread): Promise<ChannelGuildThread>
-
Parameters
-
channelId: string
-
messageId: string
-
options: CreateChannelMessageThread
createChannelStoreListingGrantEntitlement
- createChannelStoreListingGrantEntitlement(channelId: string): Promise<any>
-
Parameters
Returns Promise<any>
createChannelThread
- createChannelThread(channelId: string, options: CreateChannelThread): Promise<ChannelGuildThread>
-
Parameters
-
channelId: string
-
options: CreateChannelThread
createGuild
- createGuild(options: CreateGuild): Promise<Guild>
-
Parameters
Returns Promise<Guild>
createGuildBan
- createGuildBan(guildId: string, userId: string, options?: CreateGuildBan): Promise<any>
-
Parameters
-
guildId: string
-
userId: string
-
options: CreateGuildBan = {}
Returns Promise<any>
createGuildChannel
- createGuildChannel(guildId: string, options: CreateGuildChannel, updateCache?: boolean): Promise<Channel>
-
Parameters
-
guildId: string
-
options: CreateGuildChannel
-
updateCache: boolean = true
Returns Promise<Channel>
createGuildEmoji
- createGuildEmoji(guildId: string, options: CreateGuildEmoji, updateCache?: boolean): Promise<Emoji>
-
Parameters
-
guildId: string
-
options: CreateGuildEmoji
-
updateCache: boolean = true
Returns Promise<Emoji>
createGuildIntegration
- createGuildIntegration(guildId: string, options: CreateGuildIntegration): Promise<any>
-
Parameters
-
guildId: string
-
options: CreateGuildIntegration
Returns Promise<any>
createGuildRole
- createGuildRole(guildId: string, options?: CreateGuildRole): Promise<Role>
-
Parameters
-
guildId: string
-
options: CreateGuildRole = {}
Returns Promise<Role>
createGuildSticker
- createGuildSticker(guildId: string, options: CreateGuildSticker): Promise<Sticker>
-
Parameters
-
guildId: string
-
options: CreateGuildSticker
Returns Promise<Sticker>
createGuildTemplate
- createGuildTemplate(guildId: string, options: CreateGuildTemplate): Promise<Template>
-
Parameters
-
guildId: string
-
options: CreateGuildTemplate
Returns Promise<Template>
createInteractionResponse
- createInteractionResponse(interactionId: string, token: string, options: number | (CreateInteractionResponse & { data?: { listenerId?: string } }), data?: string | (CreateInteractionResponseInnerPayload & { listenerId?: string })): Promise<any>
-
Parameters
-
interactionId: string
-
token: string
-
options: number | (CreateInteractionResponse & { data?: { listenerId?: string } })
-
Optional data: string | (CreateInteractionResponseInnerPayload & { listenerId?: string })
Returns Promise<any>
createLobby
- createLobby(applicationId: string, options?: CreateLobby): Promise<any>
-
Parameters
-
applicationId: string
-
options: CreateLobby = {}
Returns Promise<any>
createMeBillingPaymentSource
- createMeBillingPaymentSource(options: CreateMeBillingPaymentSource): Promise<any>
-
Parameters
-
options: CreateMeBillingPaymentSource
Returns Promise<any>
createMeBillingSubscription
- createMeBillingSubscription(options: CreateMeBillingSubscription): Promise<any>
-
Parameters
-
options: CreateMeBillingSubscription
Returns Promise<any>
createMessage
- createMessage(channelId: string, options?: string | CreateMessage): Promise<Message>
-
Parameters
-
channelId: string
-
options: string | CreateMessage = {}
Returns Promise<Message>
createOauth2Application
- createOauth2Application(options: CreateOauth2Application): Promise<any>
-
Parameters
-
options: CreateOauth2Application
Returns Promise<any>
createOauth2ApplicationAsset
- createOauth2ApplicationAsset(applicationId: string, options: CreateOauth2ApplicationAsset): Promise<Oauth2ApplicationAsset>
-
Parameters
-
applicationId: string
-
options: CreateOauth2ApplicationAsset
createOauth2ApplicationBot
- createOauth2ApplicationBot(applicationId: string): Promise<any>
-
Parameters
Returns Promise<any>
createReaction
- createReaction(channelId: string, messageId: string, emoji: string): Promise<any>
-
Parameters
-
channelId: string
-
messageId: string
-
emoji: string
Returns Promise<any>
createStageInstance
- createStageInstance(options: CreateStageInstance): Promise<StageInstance>
-
Parameters
-
options: CreateStageInstance
createStoreApplicationAsset
- createStoreApplicationAsset(applicationId: string, options: CreateStoreApplicationAsset): Promise<StoreApplicationAsset>
-
Parameters
-
applicationId: string
-
options: CreateStoreApplicationAsset
createTeam
- createTeam(options?: CreateTeam): Promise<any>
-
Parameters
Returns Promise<any>
createWebhook
- createWebhook(channelId: string, options: CreateWebhook): Promise<Webhook>
-
Parameters
-
channelId: string
-
options: CreateWebhook
Returns Promise<Webhook>
crosspostMessage
- crosspostMessage(channelId: string, messageId: string): Promise<Message>
-
Parameters
-
channelId: string
-
messageId: string
Returns Promise<Message>
delete
- delete(info: string | Options | URL, init?: Options): Promise<any>
-
Parameters
-
info: string | Options | URL
-
Optional init: Options
Returns Promise<any>
deleteAccount
- deleteAccount(options: DeleteAccount): Promise<any>
-
Parameters
Returns Promise<any>
deleteApplicationCommand
- deleteApplicationCommand(applicationId: string, commandId: string): Promise<any>
-
Parameters
-
applicationId: string
-
commandId: string
Returns Promise<any>
deleteApplicationGuildCommand
- deleteApplicationGuildCommand(applicationId: string, guildId: string, commandId: string): Promise<any>
-
Parameters
-
applicationId: string
-
guildId: string
-
commandId: string
Returns Promise<any>
deleteChannel
- deleteChannel(channelId: string, options?: DeleteChannel): Promise<Channel>
-
Parameters
-
channelId: string
-
options: DeleteChannel = {}
Returns Promise<Channel>
deleteChannelOverwrite
- deleteChannelOverwrite(channelId: string, overwriteId: string, options?: DeleteChannelOverwrite): Promise<any>
-
Parameters
-
channelId: string
-
overwriteId: string
-
options: DeleteChannelOverwrite = {}
Returns Promise<any>
deleteConnection
- deleteConnection(platform: string, accountId: string): Promise<any>
-
Parameters
-
platform: string
-
accountId: string
Returns Promise<any>
deleteGuild
- deleteGuild(guildId: string, options?: DeleteGuild): Promise<any>
-
Parameters
-
guildId: string
-
options: DeleteGuild = {}
Returns Promise<any>
deleteGuildEmoji
- deleteGuildEmoji(guildId: string, emojiId: string, options?: DeleteGuildEmoji): Promise<any>
-
Parameters
-
guildId: string
-
emojiId: string
-
options: DeleteGuildEmoji = {}
Returns Promise<any>
deleteGuildIntegration
- deleteGuildIntegration(guildId: string, integrationId: string, options?: DeleteGuildIntegration): Promise<any>
-
Parameters
-
guildId: string
-
integrationId: string
-
options: DeleteGuildIntegration = {}
Returns Promise<any>
deleteGuildPremiumSubscription
- deleteGuildPremiumSubscription(guildId: string, subscriptionId: string): Promise<any>
-
Parameters
-
guildId: string
-
subscriptionId: string
Returns Promise<any>
deleteGuildRole
- deleteGuildRole(guildId: string, roleId: string, options?: DeleteGuildRole): Promise<any>
-
Parameters
-
guildId: string
-
roleId: string
-
options: DeleteGuildRole = {}
Returns Promise<any>
deleteGuildSticker
- deleteGuildSticker(guildId: string, stickerId: string, options?: DeleteGuildSticker): Promise<any>
-
Parameters
-
guildId: string
-
stickerId: string
-
options: DeleteGuildSticker = {}
Returns Promise<any>
deleteGuildTemplate
- deleteGuildTemplate(guildId: string, templateId: string): Promise<any>
-
Parameters
-
guildId: string
-
templateId: string
Returns Promise<any>
deleteInvite
- deleteInvite(code: string, options?: DeleteInvite): Promise<Invite>
-
Parameters
-
code: string
-
options: DeleteInvite = {}
Returns Promise<Invite>
deleteLobby
- deleteLobby(lobbyId: string): Promise<any>
-
Parameters
Returns Promise<any>
deleteMeBillingPaymentSource
- deleteMeBillingPaymentSource(paymentSourceId: string): Promise<any>
-
Parameters
Returns Promise<any>
deleteMeBillingSubscription
- deleteMeBillingSubscription(subscriptionId: string): Promise<any>
-
Parameters
Returns Promise<any>
deleteMessage
- deleteMessage(channelId: string, messageId: string, options?: DeleteMessage): Promise<any>
-
Parameters
-
channelId: string
-
messageId: string
-
options: DeleteMessage = {}
Returns Promise<any>
deleteOauth2Application
- deleteOauth2Application(applicationId: string, options?: DeleteOauth2Application): Promise<any>
-
Parameters
-
applicationId: string
-
options: DeleteOauth2Application = {}
Returns Promise<any>
deleteOauth2ApplicationAsset
- deleteOauth2ApplicationAsset(applicationId: string, assetId: string): Promise<any>
-
Parameters
-
applicationId: string
-
assetId: string
Returns Promise<any>
deletePinnedMessage
- deletePinnedMessage(channelId: string, messageId: string): Promise<any>
-
Parameters
-
channelId: string
-
messageId: string
Returns Promise<any>
deleteReaction
- deleteReaction(channelId: string, messageId: string, emoji: string, userId?: string): Promise<any>
-
Parameters
-
channelId: string
-
messageId: string
-
emoji: string
-
userId: string = '@me'
Returns Promise<any>
deleteReactions
- deleteReactions(channelId: string, messageId: string): Promise<any>
-
Parameters
-
channelId: string
-
messageId: string
Returns Promise<any>
deleteReactionsEmoji
- deleteReactionsEmoji(channelId: string, messageId: string, emoji: string): Promise<any>
-
Parameters
-
channelId: string
-
messageId: string
-
emoji: string
Returns Promise<any>
deleteRelationship
- deleteRelationship(userId: string): Promise<any>
-
Parameters
Returns Promise<any>
deleteStageInstance
- deleteStageInstance(channelId: string): Promise<any>
-
Parameters
Returns Promise<any>
deleteStoreApplicationAsset
- deleteStoreApplicationAsset(applicationId: string, assetId: string): Promise<any>
-
Parameters
-
applicationId: string
-
assetId: string
Returns Promise<any>
deleteTeam
- deleteTeam(teamId: string, options?: DeleteTeam): Promise<any>
-
Parameters
-
teamId: string
-
options: DeleteTeam = {}
Returns Promise<any>
deleteWebhook
- deleteWebhook(webhookId: string, options?: DeleteWebhook): Promise<any>
-
Parameters
-
webhookId: string
-
options: DeleteWebhook = {}
Returns Promise<any>
deleteWebhookToken
- deleteWebhookToken(webhookId: string, webhookToken: string, options?: DeleteWebhook): Promise<any>
-
Parameters
-
webhookId: string
-
webhookToken: string
-
options: DeleteWebhook = {}
Returns Promise<any>
deleteWebhookTokenMessage
- deleteWebhookTokenMessage(webhookId: string, webhookToken: string, messageId: string): Promise<any>
-
Parameters
-
webhookId: string
-
webhookToken: string
-
messageId: string
Returns Promise<any>
disableAccount
- disableAccount(options: DisableAccount): Promise<any>
-
Parameters
Returns Promise<any>
editApplicationCommand
- editApplicationCommand(applicationId: string, commandId: string, options?: Partial<CreateApplicationCommand>): Promise<ApplicationCommand>
-
Parameters
-
applicationId: string
-
commandId: string
-
options: Partial<CreateApplicationCommand> = {}
editApplicationGuildCommand
- editApplicationGuildCommand(applicationId: string, guildId: string, commandId: string, options?: Partial<CreateApplicationCommand>): Promise<ApplicationCommand>
-
Parameters
-
applicationId: string
-
guildId: string
-
commandId: string
-
options: Partial<CreateApplicationCommand> = {}
editApplicationGuildCommandPermissions
- editApplicationGuildCommandPermissions(applicationId: string, guildId: string, commandId: string, options: EditApplicationGuildCommandPermissions): Promise<ApplicationCommandPermissions>
-
Parameters
-
applicationId: string
-
guildId: string
-
commandId: string
-
options: EditApplicationGuildCommandPermissions
editApplicationNews
- editApplicationNews(newsId: string, options?: EditApplicationNews): Promise<any>
-
Parameters
-
newsId: string
-
options: EditApplicationNews = {}
Returns Promise<any>
editChannel
- editChannel(channelId: string, options?: EditChannel, updateCache?: boolean): Promise<Channel>
-
Parameters
-
channelId: string
-
options: EditChannel = {}
-
updateCache: boolean = true
Returns Promise<Channel>
editChannelOverwrite
- editChannelOverwrite(channelId: string, overwriteId: string, options?: EditChannelOverwrite): Promise<any>
-
Parameters
-
channelId: string
-
overwriteId: string
-
options: EditChannelOverwrite = {}
Returns Promise<any>
editConnection
- editConnection(platform: string, accountId: string, options?: EditConnection): Promise<any>
-
Parameters
-
platform: string
-
accountId: string
-
options: EditConnection = {}
Returns Promise<any>
editGuild
- editGuild(guildId: string, options?: EditGuild, updateCache?: boolean): Promise<Guild>
-
Parameters
-
guildId: string
-
options: EditGuild = {}
-
updateCache: boolean = true
Returns Promise<Guild>
editGuildChannels
- editGuildChannels(guildId: string, channels: EditGuildChannels, options?: EditGuildChannelsExtra): Promise<any>
-
Parameters
-
guildId: string
-
channels: EditGuildChannels
-
options: EditGuildChannelsExtra = {}
Returns Promise<any>
editGuildEmbed
- editGuildEmbed(guildId: string, options: EditGuildEmbed): Promise<any>
-
Parameters
-
guildId: string
-
options: EditGuildEmbed
Returns Promise<any>
editGuildEmoji
- editGuildEmoji(guildId: string, emojiId: string, options?: EditGuildEmoji, updateCache?: boolean): Promise<Emoji>
-
Parameters
-
guildId: string
-
emojiId: string
-
options: EditGuildEmoji = {}
-
updateCache: boolean = true
Returns Promise<Emoji>
editGuildIntegration
- editGuildIntegration(guildId: string, integrationId: string, options?: EditGuildIntegration): Promise<any>
-
Parameters
-
guildId: string
-
integrationId: string
-
options: EditGuildIntegration = {}
Returns Promise<any>
editGuildMember
- editGuildMember(guildId: string, userId: string, options?: EditGuildMember): Promise<any>
-
Parameters
-
guildId: string
-
userId: string
-
options: EditGuildMember = {}
Returns Promise<any>
editGuildMemberVerification
- editGuildMemberVerification(guildId: string, options?: EditGuildMemberVerification): Promise<any>
-
Parameters
-
guildId: string
-
options: EditGuildMemberVerification = {}
Returns Promise<any>
editGuildMfaLevel
- editGuildMfaLevel(guildId: string, options: EditGuildMfaLevel): Promise<any>
-
Parameters
-
guildId: string
-
options: EditGuildMfaLevel
Returns Promise<any>
editGuildNick
- editGuildNick(guildId: string, nick: string, options?: EditGuildNick): Promise<any>
-
Parameters
-
guildId: string
-
nick: string
-
options: EditGuildNick = {}
Returns Promise<any>
editGuildRole
- editGuildRole(guildId: string, roleId: string, options?: EditGuildRole, updateCache?: boolean): Promise<Role>
-
Parameters
-
guildId: string
-
roleId: string
-
options: EditGuildRole = {}
-
updateCache: boolean = true
Returns Promise<Role>
editGuildRolePositions
- editGuildRolePositions(guildId: string, roles: EditGuildRolePositions, options?: EditGuildRolePositionsExtra, updateCache?: boolean): Promise<BaseCollection<string, Role>>
-
Parameters
-
guildId: string
-
roles: EditGuildRolePositions
-
options: EditGuildRolePositionsExtra = {}
-
updateCache: boolean = true
editGuildSticker
- editGuildSticker(guildId: string, stickerId: string, options?: EditGuildSticker, updateCache?: boolean): Promise<Sticker>
-
Parameters
-
guildId: string
-
stickerId: string
-
options: EditGuildSticker = {}
-
updateCache: boolean = true
Returns Promise<Sticker>
editGuildVanity
- editGuildVanity(guildId: string, code: string, options?: EditGuildVanity): Promise<any>
-
Parameters
-
guildId: string
-
code: string
-
options: EditGuildVanity = {}
Returns Promise<any>
editGuildVoiceState
- editGuildVoiceState(guildId: string, userId: string, options: EditGuildVoiceState): Promise<any>
-
Parameters
-
guildId: string
-
userId: string
-
options: EditGuildVoiceState
Returns Promise<any>
editLobby
- editLobby(lobbyId: string, options?: EditLobby): Promise<any>
-
Parameters
-
lobbyId: string
-
options: EditLobby = {}
Returns Promise<any>
editLobbyMember
- editLobbyMember(lobbyId: string, userId: string, options?: EditLobbyMember): Promise<any>
-
Parameters
-
lobbyId: string
-
userId: string
-
options: EditLobbyMember = {}
Returns Promise<any>
editMe
- editMe(options?: EditMe, updateCache?: boolean): Promise<UserMe>
-
Parameters
-
options: EditMe = {}
-
updateCache: boolean = true
Returns Promise<UserMe>
editMeBillingPaymentSource
- editMeBillingPaymentSource(paymentSourceId: string, options?: EditMeBillingPaymentSource): Promise<any>
-
Parameters
-
paymentSourceId: string
-
options: EditMeBillingPaymentSource = {}
Returns Promise<any>
editMeBillingSubscription
- editMeBillingSubscription(subscriptionId: string, options?: EditMeBillingSubscription): Promise<any>
-
Parameters
-
subscriptionId: string
-
options: EditMeBillingSubscription = {}
Returns Promise<any>
editMessage
- editMessage(channelId: string, messageId: string, options?: string | EditMessage, updateCache?: boolean): Promise<Message>
-
Parameters
-
channelId: string
-
messageId: string
-
options: string | EditMessage = {}
-
updateCache: boolean = true
Returns Promise<Message>
editNote
- editNote(userId: string, note: string): Promise<any>
-
Parameters
-
userId: string
-
note: string
Returns Promise<any>
editOauth2Application
- editOauth2Application(applicationId: string, options?: EditOauth2Application): Promise<any>
-
Parameters
-
applicationId: string
-
options: EditOauth2Application = {}
Returns Promise<any>
editRelationship
- editRelationship(userId: string, type: number): Promise<any>
-
Parameters
-
userId: string
-
type: number
Returns Promise<any>
editSettings
- editSettings(options?: EditSettings): Promise<any>
-
Parameters
-
options: EditSettings = {}
Returns Promise<any>
editStageInstance
- editStageInstance(channelId: string, options?: EditStageInstance): Promise<any>
-
Parameters
-
channelId: string
-
options: EditStageInstance = {}
Returns Promise<any>
editTeam
- editTeam(teamId: string, options?: EditTeam): Promise<any>
-
Parameters
-
teamId: string
-
options: EditTeam = {}
Returns Promise<any>
editUser
- editUser(options?: EditMe): Promise<UserMe>
-
Parameters
Returns Promise<UserMe>
editWebhook
- editWebhook(webhookId: string, options?: EditWebhook): Promise<Webhook>
-
Parameters
-
webhookId: string
-
options: EditWebhook = {}
Returns Promise<Webhook>
editWebhookToken
- editWebhookToken(webhookId: string, webhookToken: string, options?: EditWebhook): Promise<Webhook>
-
Parameters
-
webhookId: string
-
webhookToken: string
-
options: EditWebhook = {}
Returns Promise<Webhook>
editWebhookTokenMessage
- editWebhookTokenMessage(webhookId: string, webhookToken: string, messageId: string, options?: EditWebhookTokenMessage, updateCache?: boolean): Promise<Message>
-
Parameters
-
webhookId: string
-
webhookToken: string
-
messageId: string
-
options: EditWebhookTokenMessage = {}
-
updateCache: boolean = true
Returns Promise<Message>
enableOauth2ApplicationAssets
- enableOauth2ApplicationAssets(applicationId: string): Promise<any>
-
Parameters
Returns Promise<any>
enableOauth2ApplicationRpc
- enableOauth2ApplicationRpc(applicationId: string): Promise<any>
-
Parameters
Returns Promise<any>
executeWebhook
- executeWebhook(webhookId: string, webhookToken: string, options?: string | ExecuteWebhook, compatibleType?: string): Promise<null | Message>
-
Parameters
-
webhookId: string
-
webhookToken: string
-
options: string | ExecuteWebhook = {}
-
Optional compatibleType: string
Returns Promise<null | Message>
fetchActivities
- fetchActivities(): Promise<any>
fetchApplication
- fetchApplication(applicationId: string): Promise<Application>
fetchApplicationCommand
- fetchApplicationCommand(applicationId: string, commandId: string): Promise<ApplicationCommand>
-
Parameters
-
applicationId: string
-
commandId: string
fetchApplicationGuildCommand
- fetchApplicationGuildCommand(applicationId: string, guildId: string, commandId: string): Promise<ApplicationCommand>
-
Parameters
-
applicationId: string
-
guildId: string
-
commandId: string
fetchApplicationGuildCommandPermissions
-
Parameters
-
applicationId: string
-
guildId: string
-
commandId: string
fetchApplicationGuildCommands
-
Parameters
-
applicationId: string
-
guildId: string
fetchApplicationGuildCommandsPermissions
-
Parameters
-
applicationId: string
-
guildId: string
fetchApplicationNews
-
Parameters
-
Optional applicationIds: string | string[]
fetchApplications
- fetchApplications(): Promise<any>
fetchApplicationsDetectable
fetchApplicationsPublic
- fetchApplicationsPublic(applicationIds: string | string[]): Promise<any>
-
Parameters
-
applicationIds: string | string[]
Returns Promise<any>
fetchApplicationsTrendingGlobal
- fetchApplicationsTrendingGlobal(): Promise<any>
fetchAuthConsentRequired
- fetchAuthConsentRequired(): Promise<any>
fetchChannel
- fetchChannel(channelId: string, updateCache?: boolean): Promise<Channel>
-
Parameters
-
channelId: string
-
updateCache: boolean = true
Returns Promise<Channel>
fetchChannelCall
- fetchChannelCall(channelId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchChannelStoreListing
- fetchChannelStoreListing(channelId: string): Promise<StoreListing>
fetchChannelThreadsActive
fetchChannelThreadsArchivedPrivate
-
Parameters
-
channelId: string
-
options: FetchChannelThreadsArchivedPrivate = {}
fetchChannelThreadsArchivedPrivateJoined
-
Parameters
-
channelId: string
-
options: FetchChannelThreadsArchivedPrivateJoined = {}
fetchChannelThreadsArchivedPublic
-
Parameters
-
channelId: string
-
options: FetchChannelThreadsArchivedPublic = {}
fetchConnectionAuthorizeUrl
- fetchConnectionAuthorizeUrl(platform: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchConsentRequired
- fetchConsentRequired(): Promise<any>
fetchDiscoverableGuilds
- fetchDiscoverableGuilds(): Promise<any>
fetchDms
-
Parameters
-
userId: string = '@me'
-
updateCache: boolean = true
fetchExperiments
- fetchExperiments(fingerprint?: string): Promise<any>
-
Parameters
-
Optional fingerprint: string
Returns Promise<any>
fetchGateway
- fetchGateway(): Promise<any>
fetchGatewayBot
- fetchGatewayBot(): Promise<any>
fetchGiftCode
- fetchGiftCode(code: string, options?: FetchGiftCode): Promise<Gift>
-
Parameters
-
code: string
-
options: FetchGiftCode = {}
Returns Promise<Gift>
fetchGuild
- fetchGuild(guildId: string, options?: FetchGuild, updateCache?: boolean): Promise<Guild>
-
Parameters
-
guildId: string
-
options: FetchGuild = {}
-
updateCache: boolean = true
Returns Promise<Guild>
fetchGuildApplications
- fetchGuildApplications(guildId: string, channelId?: string): Promise<any>
-
Parameters
-
guildId: string
-
Optional channelId: string
Returns Promise<any>
fetchGuildAuditLogs
- fetchGuildAuditLogs(guildId: string, options?: FetchGuildAuditLogs): Promise<BaseCollection<string, AuditLog>>
-
Parameters
-
guildId: string
-
options: FetchGuildAuditLogs = {}
fetchGuildEmbed
- fetchGuildEmbed(guildId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchGuildEmoji
- fetchGuildEmoji(guildId: string, emojiId: string): Promise<Emoji>
-
Parameters
-
guildId: string
-
emojiId: string
Returns Promise<Emoji>
fetchGuildMember
- fetchGuildMember(guildId: string, userId: string): Promise<Member>
-
Parameters
-
guildId: string
-
userId: string
Returns Promise<Member>
fetchGuildMemberVerification
- fetchGuildMemberVerification(guildId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchGuildMembers
- fetchGuildMembers(guildId: string, options?: FetchGuildMembers): Promise<BaseCollection<string, Member>>
-
Parameters
-
guildId: string
-
options: FetchGuildMembers = {}
fetchGuildMembersSearch
- fetchGuildMembersSearch(guildId: string, options: FetchGuildMembersSearch): Promise<BaseCollection<string, Member>>
-
Parameters
-
guildId: string
-
options: FetchGuildMembersSearch
fetchGuildPremiumSubscriptions
fetchGuildPreview
- fetchGuildPreview(guildId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchGuildPruneCount
- fetchGuildPruneCount(guildId: string, options?: FetchGuildPruneCount): Promise<any>
-
Parameters
-
guildId: string
-
options: FetchGuildPruneCount = {}
Returns Promise<any>
fetchGuildSticker
- fetchGuildSticker(guildId: string, stickerId: string): Promise<Sticker>
-
Parameters
-
guildId: string
-
stickerId: string
Returns Promise<Sticker>
fetchGuildVanityUrl
- fetchGuildVanityUrl(guildId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchGuildWidget
- fetchGuildWidget(guildId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchGuildWidgetJson
- fetchGuildWidgetJson(guildId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchGuildWidgetPng
- fetchGuildWidgetPng(guildId: string, options?: FetchGuildWidgetPng): Promise<any>
-
Parameters
-
guildId: string
-
options: FetchGuildWidgetPng = {}
Returns Promise<any>
fetchInvite
- fetchInvite(code: string, options?: FetchInvite): Promise<Invite>
-
Parameters
-
code: string
-
options: FetchInvite = {}
Returns Promise<Invite>
fetchMe
- fetchMe(options?: FetchMe): Promise<UserMe>
-
Parameters
Returns Promise<UserMe>
fetchMeBillingPaymentSources
- fetchMeBillingPaymentSources(): Promise<any>
fetchMeBillingPayments
- fetchMeBillingPayments(options?: FetchMeBillingPayments): Promise<any>
-
Parameters
-
options: FetchMeBillingPayments = {}
Returns Promise<any>
fetchMeBillingSubscriptions
- fetchMeBillingSubscriptions(): Promise<any>
fetchMeConnectionAccessToken
- fetchMeConnectionAccessToken(platform: string, accountId: string): Promise<any>
-
Parameters
-
platform: string
-
accountId: string
Returns Promise<any>
fetchMeConnectionSubreddits
- fetchMeConnectionSubreddits(accountId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchMeFeedSettings
- fetchMeFeedSettings(options?: FetchMeFeedSettings): Promise<any>
-
Parameters
-
options: FetchMeFeedSettings = {}
Returns Promise<any>
fetchMeGuilds
-
Parameters
-
options: FetchMeGuilds = {}
fetchMentions
-
Parameters
-
options: FetchMentions = {}
fetchMessage
- fetchMessage(channelId: string, messageId: string): Promise<Message>
-
Parameters
-
channelId: string
-
messageId: string
Returns Promise<Message>
fetchMessages
-
Parameters
-
channelId: string
-
options: FetchMessages = {}
fetchOauth2ApplicationAssets
fetchOauth2ApplicationWhitelist
- fetchOauth2ApplicationWhitelist(applicationId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchOauth2Authorize
- fetchOauth2Authorize(options?: FetchOauth2Authorize): Promise<any>
-
Parameters
-
options: FetchOauth2Authorize = {}
Returns Promise<any>
fetchOauth2AuthorizeWebhookChannels
- fetchOauth2AuthorizeWebhookChannels(guildId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchOauth2Token
- fetchOauth2Token(tokenId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchOauth2Tokens
- fetchOauth2Tokens(): Promise<any>
fetchReactions
- fetchReactions(channelId: string, messageId: string, emoji: string, options?: FetchReactions): Promise<BaseCollection<string, User>>
-
Parameters
-
channelId: string
-
messageId: string
-
emoji: string
-
options: FetchReactions = {}
fetchStoreApplicationAssets
fetchStorePublishedListingsSku
- fetchStorePublishedListingsSku(skuId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchStorePublishedListingsSkuSubscriptionPlans
- fetchStorePublishedListingsSkuSubscriptionPlans(skuId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchStorePublishedListingsSkus
- fetchStorePublishedListingsSkus(applicationId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchStreamPreview
- fetchStreamPreview(streamKey: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchTeam
- fetchTeam(teamId: string): Promise<Team>
-
Parameters
Returns Promise<Team>
fetchTeamApplications
- fetchTeamApplications(teamId: string): Promise<any>
-
Parameters
Returns Promise<any>
fetchTeamMember
- fetchTeamMember(teamId: string, userId: string): Promise<TeamMember>
-
Parameters
-
teamId: string
-
userId: string
fetchTeamPayouts
- fetchTeamPayouts(teamId: string, options?: FetchTeamPayouts): Promise<any>
-
Parameters
-
teamId: string
-
options: FetchTeamPayouts = {}
Returns Promise<any>
fetchTemplate
- fetchTemplate(templateId: string): Promise<Template>
fetchUserActivityMetadata
- fetchUserActivityMetadata(userId: string, sessionId: string, activityId: string): Promise<any>
-
Parameters
-
userId: string
-
sessionId: string
-
activityId: string
Returns Promise<any>
fetchUserProfile
- fetchUserProfile(userId: string): Promise<Profile>
-
Parameters
Returns Promise<Profile>
fetchVoiceIce
- fetchVoiceIce(): Promise<any>
fetchWebhook
- fetchWebhook(webhookId: string): Promise<Webhook>
-
Parameters
Returns Promise<Webhook>
fetchWebhookToken
- fetchWebhookToken(webhookId: string, webhookToken: string): Promise<Webhook>
-
Parameters
-
webhookId: string
-
webhookToken: string
Returns Promise<Webhook>
fetchWebhookTokenMessage
- fetchWebhookTokenMessage(webhookId: string, webhookToken: string, messageId: string): Promise<Message>
-
Parameters
-
webhookId: string
-
webhookToken: string
-
messageId: string
Returns Promise<Message>
followChannel
- followChannel(channelId: string, options: FollowChannel): Promise<{ channelId: string; webhookId: string }>
-
Parameters
-
channelId: string
-
options: FollowChannel
Returns Promise<{ channelId: string; webhookId: string }>
forgotPassword
- forgotPassword(options: ForgotPassword): Promise<any>
-
Parameters
Returns Promise<any>
get
- get(info: string | Options | URL, init?: Options): Promise<any>
-
Parameters
-
info: string | Options | URL
-
Optional init: Options
Returns Promise<any>
head
- head(info: string | Options | URL, init?: Options): Promise<any>
-
Parameters
-
info: string | Options | URL
-
Optional init: Options
Returns Promise<any>
integrationJoin
- integrationJoin(integrationId: string): Promise<any>
-
Parameters
Returns Promise<any>
joinGuild
- joinGuild(guildId: string, options?: JoinGuild): Promise<any>
-
Parameters
-
guildId: string
-
options: JoinGuild = {}
Returns Promise<any>
joinThread
- joinThread(channelId: string): Promise<any>
-
Parameters
Returns Promise<any>
leaveGuild
- leaveGuild(guildId: string): Promise<any>
-
Parameters
Returns Promise<any>
leaveThread
- leaveThread(channelId: string): Promise<any>
-
Parameters
Returns Promise<any>
login
- login(options: Login): Promise<any>
-
Parameters
Returns Promise<any>
loginMfaSms
- loginMfaSms(options: LoginMfaSms): Promise<any>
-
Parameters
Returns Promise<any>
loginMfaSmsSend
- loginMfaSmsSend(options: LoginMfaSmsSend): Promise<any>
-
Parameters
Returns Promise<any>
loginMfaTotp
- loginMfaTotp(options: LoginMfaTotp): Promise<any>
-
Parameters
Returns Promise<any>
logout
- logout(options?: Logout): Promise<any>
-
Parameters
Returns Promise<any>
oauth2Authorize
- oauth2Authorize(options?: Oauth2Authorize): Promise<any>
-
Parameters
-
options: Oauth2Authorize = {}
Returns Promise<any>
options
- options(info: string | Options | URL, init?: Options): Promise<any>
-
Parameters
-
info: string | Options | URL
-
Optional init: Options
Returns Promise<any>
patch
- patch(info: string | Options | URL, init?: Options): Promise<any>
-
Parameters
-
info: string | Options | URL
-
Optional init: Options
Returns Promise<any>
post
- post(info: string | Options | URL, init?: Options): Promise<any>
-
Parameters
-
info: string | Options | URL
-
Optional init: Options
Returns Promise<any>
put
- put(info: string | Options | URL, init?: Options): Promise<any>
-
Parameters
-
info: string | Options | URL
-
Optional init: Options
Returns Promise<any>
redeemGiftCode
- redeemGiftCode(code: string, options?: RedeemGiftCode): Promise<any>
-
Parameters
-
code: string
-
options: RedeemGiftCode = {}
Returns Promise<any>
register
- register(options: Register): Promise<any>
-
Parameters
Returns Promise<any>
removeGuildBan
- removeGuildBan(guildId: string, userId: string, options?: RemoveGuildBan): Promise<any>
-
Parameters
-
guildId: string
-
userId: string
-
options: RemoveGuildBan = {}
Returns Promise<any>
removeGuildMember
- removeGuildMember(guildId: string, userId: string, options?: RemoveGuildMember): Promise<any>
-
Parameters
-
guildId: string
-
userId: string
-
options: RemoveGuildMember = {}
Returns Promise<any>
removeGuildMemberRole
- removeGuildMemberRole(guildId: string, userId: string, roleId: string, options?: RemoveGuildMemberRole): Promise<any>
-
Parameters
-
guildId: string
-
userId: string
-
roleId: string
-
options: RemoveGuildMemberRole = {}
Returns Promise<any>
removeMention
- removeMention(messageId: string): Promise<any>
-
Parameters
Returns Promise<any>
removeOauth2ApplicationWhitelistUser
- removeOauth2ApplicationWhitelistUser(applicationId: string, userId: string): Promise<any>
-
Parameters
-
applicationId: string
-
userId: string
Returns Promise<any>
removeRecipient
- removeRecipient(channelId: string, userId: string): Promise<any>
-
Parameters
-
channelId: string
-
userId: string
Returns Promise<any>
removeTeamMember
- removeTeamMember(teamId: string, userId: string): Promise<any>
-
Parameters
-
teamId: string
-
userId: string
Returns Promise<any>
removeThreadMember
- removeThreadMember(channelId: string, userId: string): Promise<any>
-
Parameters
-
channelId: string
-
userId: string
Returns Promise<any>
request
- request(info: string | Options | URL, init?: Options): Promise<any>
-
Parameters
-
info: string | Options | URL
-
Optional init: Options
Returns Promise<any>
resetOauth2Application
- resetOauth2Application(applicationId: string): Promise<any>
-
Parameters
Returns Promise<any>
resetOauth2ApplicationBot
- resetOauth2ApplicationBot(applicationId: string): Promise<any>
-
Parameters
Returns Promise<any>
resetPassword
- resetPassword(options: ResetPassword): Promise<any>
-
Parameters
Returns Promise<any>
resetPasswordMfa
- resetPasswordMfa(options: ResetPasswordMfa): Promise<any>
-
Parameters
-
options: ResetPasswordMfa
Returns Promise<any>
search
- search(searchType: "channel" | "guild", searchId: string, options?: SearchOptions, retry?: boolean, retryNumber?: number): Promise<any>
-
Parameters
-
searchType: "channel" | "guild"
-
searchId: string
-
options: SearchOptions = {}
-
retry: boolean = true
-
retryNumber: number = 0
Returns Promise<any>
searchChannel
- searchChannel(channelId: string, options?: SearchOptions, retry?: boolean, retryNumber?: number): Promise<any>
-
Parameters
-
channelId: string
-
options: SearchOptions = {}
-
retry: boolean = true
-
retryNumber: number = 0
Returns Promise<any>
searchGuild
- searchGuild(guildId: string, options?: SearchOptions, retry?: boolean, retryNumber?: number): Promise<any>
-
Parameters
-
guildId: string
-
options: SearchOptions = {}
-
retry: boolean = true
-
retryNumber: number = 0
Returns Promise<any>
searchLobbies
- searchLobbies(applicationId: string, options?: SearchLobbies): Promise<any>
-
Parameters
-
applicationId: string
-
options: SearchLobbies = {}
Returns Promise<any>
sendDownloadText
- sendDownloadText(number: string): Promise<any>
-
Parameters
Returns Promise<any>
sendFriendRequest
- sendFriendRequest(options: SendFriendRequest): Promise<any>
-
Parameters
-
options: SendFriendRequest
Returns Promise<any>
sendLobbyData
- sendLobbyData(lobbyId: string, data: string): Promise<any>
-
Parameters
-
lobbyId: string
-
data: string
Returns Promise<any>
setAuthType
- setAuthType(type: string): void
startChannelCallRinging
- startChannelCallRinging(channelId: string, options?: StartChannelCallRinging): Promise<any>
-
Parameters
-
channelId: string
-
options: StartChannelCallRinging = {}
Returns Promise<any>
stopChannelCallRinging
- stopChannelCallRinging(channelId: string, options?: StopChannelCallRinging): Promise<any>
-
Parameters
-
channelId: string
-
options: StopChannelCallRinging = {}
Returns Promise<any>
submitConnectionPinCode
- submitConnectionPinCode(platform: string, pin: string): Promise<any>
-
Parameters
-
platform: string
-
pin: string
Returns Promise<any>
submitOauth2ApplicationApproval
- submitOauth2ApplicationApproval(applicationId: string): Promise<any>
-
Parameters
Returns Promise<any>
syncGuildIntegration
- syncGuildIntegration(guildId: string, integrationId: string): Promise<any>
-
Parameters
-
guildId: string
-
integrationId: string
Returns Promise<any>
transferOauth2Application
- transferOauth2Application(applicationId: string, options: TransferOauth2Application): Promise<any>
-
Parameters
-
applicationId: string
-
options: TransferOauth2Application
Returns Promise<any>
triggerTyping
- triggerTyping(channelId: string): Promise<any>
-
Parameters
Returns Promise<any>
unAckChannel
- unAckChannel(channelId: string): Promise<any>
-
Parameters
Returns Promise<any>
verify
- verify(options: Verify): Promise<any>
-
Parameters
Returns Promise<any>
verifyCaptcha
- verifyCaptcha(options: VerifyCaptcha): Promise<any>
-
Parameters
Returns Promise<any>
verifyResend
- verifyResend(): Promise<any>