Variable RoutesConst

Routes: {
    applicationCommand(applicationId, commandId) => `/applications/${string}/commands/${string}`;
    applicationCommandPermissions(applicationId, guildId, commandId) => `/applications/${string}/guilds/${string}/commands/${string}/permissions`;
    applicationCommands(applicationId) => `/applications/${string}/commands`;
    applicationEmoji(applicationId, emojiId) => `/applications/${string}/emojis/${string}`;
    applicationEmojis(applicationId) => `/applications/${string}/emojis`;
    applicationGuildCommand(applicationId, guildId, commandId) => `/applications/${string}/guilds/${string}/commands/${string}`;
    applicationGuildCommands(applicationId, guildId) => `/applications/${string}/guilds/${string}/commands`;
    applicationRoleConnectionMetadata(applicationId) => `/applications/${string}/role-connections/metadata`;
    channel(channelId) => `/channels/${string}`;
    channelBulkDelete(channelId) => `/channels/${string}/messages/bulk-delete`;
    channelFollowers(channelId) => `/channels/${string}/followers`;
    channelInvites(channelId) => `/channels/${string}/invites`;
    channelJoinedArchivedThreads(channelId) => `/channels/${string}/users/@me/threads/archived/private`;
    channelMessage(channelId, messageId) => `/channels/${string}/messages/${string}`;
    channelMessageAllReactions(channelId, messageId) => `/channels/${string}/messages/${string}/reactions`;
    channelMessageCrosspost(channelId, messageId) => `/channels/${string}/messages/${string}/crosspost`;
    channelMessageOwnReaction(channelId, messageId, emoji) => `/channels/${string}/messages/${string}/reactions/${string}/@me`;
    channelMessageReaction(channelId, messageId, emoji) => `/channels/${string}/messages/${string}/reactions/${string}`;
    channelMessageUserReaction(channelId, messageId, emoji, userId) => `/channels/${string}/messages/${string}/reactions/${string}/${string}`;
    channelMessages(channelId) => `/channels/${string}/messages`;
    channelPermission(channelId, overwriteId) => `/channels/${string}/permissions/${string}`;
    channelPin(channelId, messageId) => `/channels/${string}/pins/${string}`;
    channelPins(channelId) => `/channels/${string}/pins`;
    channelRecipient(channelId, userId) => `/channels/${string}/recipients/${string}`;
    channelThreads(channelId, archivedStatus) => `/channels/${string}/threads/archived/private` | `/channels/${string}/threads/archived/public`;
    channelTyping(channelId) => `/channels/${string}/typing`;
    channelWebhooks(channelId) => `/channels/${string}/webhooks`;
    consumeEntitlement(applicationId, entitlementId) => `/applications/${string}/entitlements/${string}/consume`;
    currentApplication() => "/applications/@me";
    entitlement(applicationId, entitlementId) => `/applications/${string}/entitlements/${string}`;
    entitlements(applicationId) => `/applications/${string}/entitlements`;
    expirePoll(channelId, messageId) => `/channels/${string}/polls/${string}/expire`;
    gateway() => "/gateway";
    gatewayBot() => "/gateway/bot";
    guild(guildId) => `/guilds/${string}`;
    guildActiveThreads(guildId) => `/guilds/${string}/threads/active`;
    guildApplicationCommandsPermissions(applicationId, guildId) => `/applications/${string}/guilds/${string}/commands/permissions`;
    guildAuditLog(guildId) => `/guilds/${string}/audit-logs`;
    guildAutoModerationRule(guildId, ruleId) => `/guilds/${string}/auto-moderation/rules/${string}`;
    guildAutoModerationRules(guildId) => `/guilds/${string}/auto-moderation/rules`;
    guildBan(guildId, userId) => `/guilds/${string}/bans/${string}`;
    guildBans(guildId) => `/guilds/${string}/bans`;
    guildBulkBan(guildId) => `/guilds/${string}/bulk-ban`;
    guildChannels(guildId) => `/guilds/${string}/channels`;
    guildCurrentMemberNickname(guildId) => `/guilds/${string}/members/@me/nick`;
    guildEmoji(guildId, emojiId) => `/guilds/${string}/emojis/${string}`;
    guildEmojis(guildId) => `/guilds/${string}/emojis`;
    guildIntegration(guildId, integrationId) => `/guilds/${string}/integrations/${string}`;
    guildIntegrations(guildId) => `/guilds/${string}/integrations`;
    guildInvites(guildId) => `/guilds/${string}/invites`;
    guildMFA(guildId) => `/guilds/${string}/mfa`;
    guildMember(guildId, userId?) => `/guilds/${string}/members/${string}`;
    guildMemberRole(guildId, memberId, roleId) => `/guilds/${string}/members/${string}/roles/${string}`;
    guildMemberVerification(guildId) => `/guilds/${string}/member-verification`;
    guildMembers(guildId) => `/guilds/${string}/members`;
    guildMembersSearch(guildId) => `/guilds/${string}/members/search`;
    guildOnboarding(guildId) => `/guilds/${string}/onboarding`;
    guildPreview(guildId) => `/guilds/${string}/preview`;
    guildPrune(guildId) => `/guilds/${string}/prune`;
    guildRole(guildId, roleId) => `/guilds/${string}/roles/${string}`;
    guildRoles(guildId) => `/guilds/${string}/roles`;
    guildScheduledEvent(guildId, guildScheduledEventId) => `/guilds/${string}/scheduled-events/${string}`;
    guildScheduledEventUsers(guildId, guildScheduledEventId) => `/guilds/${string}/scheduled-events/${string}/users`;
    guildScheduledEvents(guildId) => `/guilds/${string}/scheduled-events`;
    guildSticker(guildId, stickerId) => `/guilds/${string}/stickers/${string}`;
    guildStickers(guildId) => `/guilds/${string}/stickers`;
    guildTemplate(guildId, code) => `/guilds/${string}/templates/${string}`;
    guildTemplates(guildId) => `/guilds/${string}/templates`;
    guildVanityUrl(guildId) => `/guilds/${string}/vanity-url`;
    guildVoiceRegions(guildId) => `/guilds/${string}/regions`;
    guildVoiceState(guildId, userId?) => `/guilds/${string}/voice-states/${string}`;
    guildWebhooks(guildId) => `/guilds/${string}/webhooks`;
    guildWelcomeScreen(guildId) => `/guilds/${string}/welcome-screen`;
    guildWidgetImage(guildId) => `/guilds/${string}/widget.png`;
    guildWidgetJSON(guildId) => `/guilds/${string}/widget.json`;
    guildWidgetSettings(guildId) => `/guilds/${string}/widget`;
    guilds() => "/guilds";
    interactionCallback(interactionId, interactionToken) => `/interactions/${string}/${string}/callback`;
    invite(code) => `/invites/${string}`;
    nitroStickerPacks() => "/sticker-packs";
    oauth2Authorization() => "/oauth2/authorize";
    oauth2CurrentApplication() => "/oauth2/applications/@me";
    oauth2CurrentAuthorization() => "/oauth2/@me";
    oauth2TokenExchange() => "/oauth2/token";
    oauth2TokenRevocation() => "/oauth2/token/revoke";
    pollAnswerVoters(channelId, messageId, answerId) => `/channels/${string}/polls/${string}/answers/${number}`;
    skus(applicationId) => `/applications/${string}/skus`;
    stageInstance(channelId) => `/stage-instances/${string}`;
    stageInstances() => "/stage-instances";
    sticker(stickerId) => `/stickers/${string}`;
    stickerPack(packId) => `/sticker-packs/${string}`;
    stickerPacks() => "/sticker-packs";
    template(code) => `/guilds/templates/${string}`;
    threadMembers(threadId, userId?) => `/channels/${string}/thread-members/${string}` | `/channels/${string}/thread-members`;
    threads(parentId, messageId?) => `/channels/${string}/messages/${string}/threads` | `/channels/${string}/threads`;
    user(userId?) => `/users/${string}`;
    userApplicationRoleConnection(applicationId) => `/users/@me/applications/${string}/role-connection`;
    userChannels() => "/users/@me/channels";
    userConnections() => "/users/@me/connections";
    userGuild(guildId) => `/users/@me/guilds/${string}`;
    userGuildMember(guildId) => `/users/@me/guilds/${string}/member`;
    userGuilds() => "/users/@me/guilds";
    voiceRegions() => "/voice/regions";
    webhook(webhookId, webhookToken?) => `/webhooks/${string}/${string}` | `/webhooks/${string}`;
    webhookMessage(webhookId, webhookToken, messageId?) => `/webhooks/${string}/${string}/messages/${string}`;
    webhookPlatform(webhookId, webhookToken, platform) => `/webhooks/${string}/${string}/github` | `/webhooks/${string}/${string}/slack`;
}

Type declaration

  • applicationCommand:function
    • Route for:

      • GET /applications/{application.id}/commands/{command.id}
      • PATCH /applications/{application.id}/commands/{command.id}
      • DELETE /applications/{application.id}/commands/{command.id}

      Parameters

      • applicationId: string
      • commandId: string

      Returns `/applications/${string}/commands/${string}`

  • applicationCommandPermissions:function
    • Route for:

      • GET /applications/{application.id}/guilds/{guild.id}/commands/{command.id}/permissions
      • PUT /applications/{application.id}/guilds/{guild.id}/commands/{command.id}/permissions

      Parameters

      • applicationId: string
      • guildId: string
      • commandId: string

      Returns `/applications/${string}/guilds/${string}/commands/${string}/permissions`

  • applicationCommands:function
    • Route for:

      • GET /applications/{application.id}/commands
      • PUT /applications/{application.id}/commands
      • POST /applications/{application.id}/commands

      Parameters

      • applicationId: string

      Returns `/applications/${string}/commands`

  • applicationEmoji:function
    • Route for:

      • GET /applications/{application.id}/emojis/{emoji.id}
      • PATCH /applications/{application.id}/emojis/{emoji.id}
      • DELETE /applications/{application.id}/emojis/{emoji.id}

      Parameters

      • applicationId: string
      • emojiId: string

      Returns `/applications/${string}/emojis/${string}`

  • applicationEmojis:function
    • Route for:

      • GET /applications/{application.id}/emojis
      • POST /applications/{application.id}/emojis

      Parameters

      • applicationId: string

      Returns `/applications/${string}/emojis`

  • applicationGuildCommand:function
    • Route for:

      • GET /applications/{application.id}/guilds/{guild.id}/commands/{command.id}
      • PATCH /applications/{application.id}/guilds/{guild.id}/commands/{command.id}
      • DELETE /applications/{application.id}/guilds/{guild.id}/commands/{command.id}

      Parameters

      • applicationId: string
      • guildId: string
      • commandId: string

      Returns `/applications/${string}/guilds/${string}/commands/${string}`

  • applicationGuildCommands:function
    • Route for:

      • GET /applications/{application.id}/guilds/{guild.id}/commands
      • PUT /applications/{application.id}/guilds/{guild.id}/commands
      • POST /applications/{application.id}/guilds/{guild.id}/commands

      Parameters

      • applicationId: string
      • guildId: string

      Returns `/applications/${string}/guilds/${string}/commands`

  • applicationRoleConnectionMetadata:function
    • Route for:

      • GET /applications/{application.id}/role-connections/metadata
      • PUT /applications/{application.id}/role-connections/metadata

      Parameters

      • applicationId: string

      Returns `/applications/${string}/role-connections/metadata`

  • channel:function
    • Route for:

      • GET /channels/{channel.id}
      • PATCH /channels/{channel.id}
      • DELETE /channels/{channel.id}

      Parameters

      • channelId: string

      Returns `/channels/${string}`

  • channelBulkDelete:function
    • Route for:

      • POST /channels/{channel.id}/messages/bulk-delete

      Parameters

      • channelId: string

      Returns `/channels/${string}/messages/bulk-delete`

  • channelFollowers:function
    • Route for:

      • POST /channels/{channel.id}/followers

      Parameters

      • channelId: string

      Returns `/channels/${string}/followers`

  • channelInvites:function
    • Route for:

      • GET /channels/{channel.id}/invites
      • POST /channels/{channel.id}/invites

      Parameters

      • channelId: string

      Returns `/channels/${string}/invites`

  • channelJoinedArchivedThreads:function
    • Route for:

      • GET /channels/{channel.id}/users/@me/threads/archived/private

      Parameters

      • channelId: string

      Returns `/channels/${string}/users/@me/threads/archived/private`

  • channelMessage:function
    • Route for:

      • GET /channels/{channel.id}/messages/{message.id}
      • PATCH /channels/{channel.id}/messages/{message.id}
      • DELETE /channels/{channel.id}/messages/{message.id}

      Parameters

      • channelId: string
      • messageId: string

      Returns `/channels/${string}/messages/${string}`

  • channelMessageAllReactions:function
    • Route for:

      • DELETE /channels/{channel.id}/messages/{message.id}/reactions

      Parameters

      • channelId: string
      • messageId: string

      Returns `/channels/${string}/messages/${string}/reactions`

  • channelMessageCrosspost:function
    • Route for:

      • POST /channels/{channel.id}/messages/{message.id}/crosspost

      Parameters

      • channelId: string
      • messageId: string

      Returns `/channels/${string}/messages/${string}/crosspost`

  • channelMessageOwnReaction:function
    • Route for:

      • PUT /channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me
      • DELETE /channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me

      Note: You need to URL encode the emoji yourself

      Parameters

      • channelId: string
      • messageId: string
      • emoji: string

      Returns `/channels/${string}/messages/${string}/reactions/${string}/@me`

  • channelMessageReaction:function
    • Route for:

      • GET /channels/{channel.id}/messages/{message.id}/reactions/{emoji}
      • DELETE /channels/{channel.id}/messages/{message.id}/reactions/{emoji}

      Note: You need to URL encode the emoji yourself

      Parameters

      • channelId: string
      • messageId: string
      • emoji: string

      Returns `/channels/${string}/messages/${string}/reactions/${string}`

  • channelMessageUserReaction:function
    • Route for:

      • DELETE /channels/{channel.id}/messages/{message.id}/reactions/{emoji}/{user.id}

      Note: You need to URL encode the emoji yourself

      Parameters

      • channelId: string
      • messageId: string
      • emoji: string
      • userId: string

      Returns `/channels/${string}/messages/${string}/reactions/${string}/${string}`

  • channelMessages:function
    • Route for:

      • GET /channels/{channel.id}/messages
      • POST /channels/{channel.id}/messages

      Parameters

      • channelId: string

      Returns `/channels/${string}/messages`

  • channelPermission:function
    • Route for:

      • PUT /channels/{channel.id}/permissions/{overwrite.id}
      • DELETE /channels/{channel.id}/permissions/{overwrite.id}

      Parameters

      • channelId: string
      • overwriteId: string

      Returns `/channels/${string}/permissions/${string}`

  • channelPin:function
    • Route for:

      • PUT /channels/{channel.id}/pins/{message.id}
      • DELETE /channels/{channel.id}/pins/{message.id}

      Parameters

      • channelId: string
      • messageId: string

      Returns `/channels/${string}/pins/${string}`

  • channelPins:function
    • Route for:

      • GET /channels/{channel.id}/pins

      Parameters

      • channelId: string

      Returns `/channels/${string}/pins`

  • channelRecipient:function
    • Route for:

      • PUT /channels/{channel.id}/recipients/{user.id}
      • DELETE /channels/{channel.id}/recipients/{user.id}

      Parameters

      • channelId: string
      • userId: string

      Returns `/channels/${string}/recipients/${string}`

  • channelThreads:function
    • Route for:

      • GET /channels/{channel.id}/threads/archived/public
      • GET /channels/{channel.id}/threads/archived/private

      Parameters

      • channelId: string
      • archivedStatus: "public" | "private"

      Returns `/channels/${string}/threads/archived/private` | `/channels/${string}/threads/archived/public`

  • channelTyping:function
    • Route for:

      • POST /channels/{channel.id}/typing

      Parameters

      • channelId: string

      Returns `/channels/${string}/typing`

  • channelWebhooks:function
    • Route for:

      • GET /channels/{channel.id}/webhooks
      • POST /channels/{channel.id}/webhooks

      Parameters

      • channelId: string

      Returns `/channels/${string}/webhooks`

  • consumeEntitlement:function
    • Route for:

      • POST /applications/{application.id}/entitlements/{entitlement.id}/consume

      Parameters

      • applicationId: string
      • entitlementId: string

      Returns `/applications/${string}/entitlements/${string}/consume`

  • currentApplication:function
    • Route for:

      • GET /applications/@me
      • PATCH /applications/@me

      Returns "/applications/@me"

  • entitlement:function
    • Route for:

      • DELETE /applications/{application.id}/entitlements/{entitlement.id}

      Parameters

      • applicationId: string
      • entitlementId: string

      Returns `/applications/${string}/entitlements/${string}`

  • entitlements:function
    • Route for:

      • GET /applications/{application.id}/entitlements
      • POST /applications/{application.id}/entitlements

      Parameters

      • applicationId: string

      Returns `/applications/${string}/entitlements`

  • expirePoll:function
    • Route for:

      • POST /channels/{channel.id}/polls/{message.id}/expire

      Parameters

      • channelId: string
      • messageId: string

      Returns `/channels/${string}/polls/${string}/expire`

  • gateway:function
    • Route for:

      • GET /gateway

      Returns "/gateway"

  • gatewayBot:function
    • Route for:

      • GET /gateway/bot

      Returns "/gateway/bot"

  • guild:function
    • Route for:

      • GET /guilds/{guild.id}
      • PATCH /guilds/{guild.id}
      • DELETE /guilds/{guild.id}

      Parameters

      • guildId: string

      Returns `/guilds/${string}`

  • guildActiveThreads:function
    • Route for:

      • GET /guilds/{guild.id}/threads/active

      Parameters

      • guildId: string

      Returns `/guilds/${string}/threads/active`

  • guildApplicationCommandsPermissions:function
    • Route for:

      • GET /applications/{application.id}/guilds/{guild.id}/commands/permissions
      • PUT /applications/{application.id}/guilds/{guild.id}/commands/permissions

      Parameters

      • applicationId: string
      • guildId: string

      Returns `/applications/${string}/guilds/${string}/commands/permissions`

  • guildAuditLog:function
    • Route for:

      • GET /guilds/{guild.id}/audit-logs

      Parameters

      • guildId: string

      Returns `/guilds/${string}/audit-logs`

  • guildAutoModerationRule:function
    • Routes for:

      • GET /guilds/{guild.id}/auto-moderation/rules/{rule.id}
      • PATCH /guilds/{guild.id}/auto-moderation/rules/{rule.id}
      • DELETE /guilds/{guild.id}/auto-moderation/rules/{rule.id}

      Parameters

      • guildId: string
      • ruleId: string

      Returns `/guilds/${string}/auto-moderation/rules/${string}`

  • guildAutoModerationRules:function
    • Route for:

      • GET /guilds/{guild.id}/auto-moderation/rules
      • POST /guilds/{guild.id}/auto-moderation/rules

      Parameters

      • guildId: string

      Returns `/guilds/${string}/auto-moderation/rules`

  • guildBan:function
    • Route for:

      • GET /guilds/{guild.id}/bans/{user.id}
      • PUT /guilds/{guild.id}/bans/{user.id}
      • DELETE /guilds/{guild.id}/bans/{user.id}

      Parameters

      • guildId: string
      • userId: string

      Returns `/guilds/${string}/bans/${string}`

  • guildBans:function
    • Route for:

      • GET /guilds/{guild.id}/bans

      Parameters

      • guildId: string

      Returns `/guilds/${string}/bans`

  • guildBulkBan:function
    • Route for:

      • POST /guilds/{guild.id}/bulk-ban

      Parameters

      • guildId: string

      Returns `/guilds/${string}/bulk-ban`

  • guildChannels:function
    • Route for:

      • GET /guilds/{guild.id}/channels
      • POST /guilds/{guild.id}/channels
      • PATCH /guilds/{guild.id}/channels

      Parameters

      • guildId: string

      Returns `/guilds/${string}/channels`

  • guildCurrentMemberNickname:function
    • Route for:

      • PATCH /guilds/{guild.id}/members/@me/nick

      Parameters

      • guildId: string

      Returns `/guilds/${string}/members/@me/nick`

      Deprecated

      Use guildMember instead.

  • guildEmoji:function
    • Route for:

      • GET /guilds/{guild.id}/emojis/{emoji.id}
      • PATCH /guilds/{guild.id}/emojis/{emoji.id}
      • DELETE /guilds/{guild.id}/emojis/{emoji.id}

      Parameters

      • guildId: string
      • emojiId: string

      Returns `/guilds/${string}/emojis/${string}`

  • guildEmojis:function
    • Route for:

      • GET /guilds/{guild.id}/emojis
      • POST /guilds/{guild.id}/emojis

      Parameters

      • guildId: string

      Returns `/guilds/${string}/emojis`

  • guildIntegration:function
    • Route for:

      • DELETE /guilds/{guild.id}/integrations/{integration.id}

      Parameters

      • guildId: string
      • integrationId: string

      Returns `/guilds/${string}/integrations/${string}`

  • guildIntegrations:function
    • Route for:

      • GET /guilds/{guild.id}/integrations

      Parameters

      • guildId: string

      Returns `/guilds/${string}/integrations`

  • guildInvites:function
    • Route for:

      • GET /guilds/{guild.id}/invites

      Parameters

      • guildId: string

      Returns `/guilds/${string}/invites`

  • guildMFA:function
    • Route for:

      • POST /guilds/{guild.id}/mfa

      Parameters

      • guildId: string

      Returns `/guilds/${string}/mfa`

  • guildMember:function
    • Route for:

      • GET /guilds/{guild.id}/members/{user.id}
      • PUT /guilds/{guild.id}/members/{user.id}
      • PATCH /guilds/{guild.id}/members/@me
      • PATCH /guilds/{guild.id}/members/{user.id}
      • DELETE /guilds/{guild.id}/members/{user.id}

      Parameters

      • guildId: string
      • Optional userId: string

      Returns `/guilds/${string}/members/${string}`

  • guildMemberRole:function
    • Route for:

      • PUT /guilds/{guild.id}/members/{user.id}/roles/{role.id}
      • DELETE /guilds/{guild.id}/members/{user.id}/roles/{role.id}

      Parameters

      • guildId: string
      • memberId: string
      • roleId: string

      Returns `/guilds/${string}/members/${string}/roles/${string}`

  • guildMemberVerification:function
    • Route for:

      • GET /guilds/{guild.id}/member-verification
      • PATCH /guilds/{guild.id}/member-verification

      Parameters

      • guildId: string

      Returns `/guilds/${string}/member-verification`

  • guildMembers:function
    • Route for:

      • GET /guilds/{guild.id}/members

      Parameters

      • guildId: string

      Returns `/guilds/${string}/members`

  • guildMembersSearch:function
    • Route for:

      • GET /guilds/{guild.id}/members/search

      Parameters

      • guildId: string

      Returns `/guilds/${string}/members/search`

  • guildOnboarding:function
    • Route for:

      • GET /guilds/{guild.id}/onboarding
      • PUT /guilds/{guild.id}/onboarding

      Parameters

      • guildId: string

      Returns `/guilds/${string}/onboarding`

  • guildPreview:function
    • Route for:

      • GET /guilds/{guild.id}/preview

      Parameters

      • guildId: string

      Returns `/guilds/${string}/preview`

  • guildPrune:function
    • Route for:

      • GET /guilds/{guild.id}/prune
      • POST /guilds/{guild.id}/prune

      Parameters

      • guildId: string

      Returns `/guilds/${string}/prune`

  • guildRole:function
    • Route for:

      • GET /guilds/{guild.id}/roles/{role.id}
      • PATCH /guilds/{guild.id}/roles/{role.id}
      • DELETE /guilds/{guild.id}/roles/{role.id}

      Parameters

      • guildId: string
      • roleId: string

      Returns `/guilds/${string}/roles/${string}`

  • guildRoles:function
    • Route for:

      • GET /guilds/{guild.id}/roles
      • POST /guilds/{guild.id}/roles
      • PATCH /guilds/{guild.id}/roles

      Parameters

      • guildId: string

      Returns `/guilds/${string}/roles`

  • guildScheduledEvent:function
    • Route for:

      • GET /guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}
      • PATCH /guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}
      • DELETE /guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}

      Parameters

      • guildId: string
      • guildScheduledEventId: string

      Returns `/guilds/${string}/scheduled-events/${string}`

  • guildScheduledEventUsers:function
    • Route for:

      • GET /guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}/users

      Parameters

      • guildId: string
      • guildScheduledEventId: string

      Returns `/guilds/${string}/scheduled-events/${string}/users`

  • guildScheduledEvents:function
    • Route for:

      • GET /guilds/{guild.id}/scheduled-events
      • POST /guilds/{guild.id}/scheduled-events

      Parameters

      • guildId: string

      Returns `/guilds/${string}/scheduled-events`

  • guildSticker:function
    • Route for:

      • GET /guilds/{guild.id}/stickers/{sticker.id}
      • PATCH /guilds/{guild.id}/stickers/{sticker.id}
      • DELETE /guilds/{guild.id}/stickers/{sticker.id}

      Parameters

      • guildId: string
      • stickerId: string

      Returns `/guilds/${string}/stickers/${string}`

  • guildStickers:function
    • Route for:

      • GET /guilds/{guild.id}/stickers
      • POST /guilds/{guild.id}/stickers

      Parameters

      • guildId: string

      Returns `/guilds/${string}/stickers`

  • guildTemplate:function
    • Route for:

      • PUT /guilds/{guild.id}/templates/{template.code}
      • PATCH /guilds/{guild.id}/templates/{template.code}
      • DELETE /guilds/{guild.id}/templates/{template.code}

      Parameters

      • guildId: string
      • code: string

      Returns `/guilds/${string}/templates/${string}`

  • guildTemplates:function
    • Route for:

      • GET /guilds/{guild.id}/templates
      • POST /guilds/{guild.id}/templates

      Parameters

      • guildId: string

      Returns `/guilds/${string}/templates`

  • guildVanityUrl:function
    • Route for:

      • GET /guilds/{guild.id}/vanity-url

      Parameters

      • guildId: string

      Returns `/guilds/${string}/vanity-url`

  • guildVoiceRegions:function
    • Route for:

      • GET /guilds/{guild.id}/regions

      Parameters

      • guildId: string

      Returns `/guilds/${string}/regions`

  • guildVoiceState:function
    • Route for:

      • GET /guilds/{guild.id}/voice-states/@me
      • GET /guilds/{guild.id}/voice-states/{user.id}
      • PATCH /guilds/{guild.id}/voice-states/@me
      • PATCH /guilds/{guild.id}/voice-states/{user.id}

      Parameters

      • guildId: string
      • Optional userId: string

      Returns `/guilds/${string}/voice-states/${string}`

  • guildWebhooks:function
    • Route for:

      • GET /guilds/{guild.id}/webhooks

      Parameters

      • guildId: string

      Returns `/guilds/${string}/webhooks`

  • guildWelcomeScreen:function
    • Route for:

      • GET /guilds/{guild.id}/welcome-screen
      • PATCH /guilds/{guild.id}/welcome-screen

      Parameters

      • guildId: string

      Returns `/guilds/${string}/welcome-screen`

  • guildWidgetImage:function
    • Route for:

      • GET /guilds/{guild.id}/widget.png

      Parameters

      • guildId: string

      Returns `/guilds/${string}/widget.png`

  • guildWidgetJSON:function
    • Route for:

      • GET /guilds/{guild.id}/widget.json

      Parameters

      • guildId: string

      Returns `/guilds/${string}/widget.json`

  • guildWidgetSettings:function
    • Route for:

      • GET /guilds/{guild.id}/widget
      • PATCH /guilds/{guild.id}/widget

      Parameters

      • guildId: string

      Returns `/guilds/${string}/widget`

  • guilds:function
    • Route for:

      • POST /guilds

      Returns "/guilds"

  • interactionCallback:function
    • Route for:

      • POST /interactions/{interaction.id}/{interaction.token}/callback

      Parameters

      • interactionId: string
      • interactionToken: string

      Returns `/interactions/${string}/${string}/callback`

  • invite:function
    • Route for:

      • GET /invites/{invite.code}
      • DELETE /invites/{invite.code}

      Parameters

      • code: string

      Returns `/invites/${string}`

  • nitroStickerPacks:function
    • Route for:

      • GET /sticker-packs

      Returns "/sticker-packs"

      Deprecated

      Use stickerPacks instead.

  • oauth2Authorization:function
    • Route for:

      • GET /oauth2/authorize

      Returns "/oauth2/authorize"

  • oauth2CurrentApplication:function
    • Route for:

      • GET /oauth2/applications/@me

      Returns "/oauth2/applications/@me"

  • oauth2CurrentAuthorization:function
    • Route for:

      • GET /oauth2/@me

      Returns "/oauth2/@me"

  • oauth2TokenExchange:function
    • Route for:

      • POST /oauth2/token

      Returns "/oauth2/token"

  • oauth2TokenRevocation:function
    • Route for:

      • POST /oauth2/token/revoke

      Returns "/oauth2/token/revoke"

  • pollAnswerVoters:function
    • Route for:

      • GET /channels/{channel.id}/polls/{message.id}/answers/{answer_id}

      Parameters

      • channelId: string
      • messageId: string
      • answerId: number

      Returns `/channels/${string}/polls/${string}/answers/${number}`

  • skus:function
    • Route for:

      • GET /applications/{application.id}/skus

      Parameters

      • applicationId: string

      Returns `/applications/${string}/skus`

  • stageInstance:function
    • Route for:

      • GET /stage-instances/{channel.id}
      • PATCH /stage-instances/{channel.id}
      • DELETE /stage-instances/{channel.id}

      Parameters

      • channelId: string

      Returns `/stage-instances/${string}`

  • stageInstances:function
    • Route for:

      • POST /stage-instances

      Returns "/stage-instances"

  • sticker:function
    • Route for:

      • GET /stickers/{sticker.id}

      Parameters

      • stickerId: string

      Returns `/stickers/${string}`

  • stickerPack:function
    • Route for:

      • GET /sticker-packs/{pack.id}

      Parameters

      • packId: string

      Returns `/sticker-packs/${string}`

  • stickerPacks:function
    • Route for:

      • GET /sticker-packs

      Returns "/sticker-packs"

  • template:function
    • Route for:

      • GET /guilds/templates/{template.code}
      • POST /guilds/templates/{template.code}

      Parameters

      • code: string

      Returns `/guilds/templates/${string}`

  • threadMembers:function
    • Route for:

      • GET /channels/{thread.id}/thread-members
      • GET /channels/{thread.id}/thread-members/{user.id}
      • PUT /channels/{thread.id}/thread-members/@me
      • PUT /channels/{thread.id}/thread-members/{user.id}
      • DELETE /channels/{thread.id}/thread-members/@me
      • DELETE /channels/{thread.id}/thread-members/{user.id}

      Parameters

      • threadId: string
      • Optional userId: string

      Returns `/channels/${string}/thread-members/${string}` | `/channels/${string}/thread-members`

  • threads:function
    • Route for:

      • POST /channels/{channel.id}/threads
      • POST /channels/{channel.id}/messages/{message.id}/threads

      Parameters

      • parentId: string
      • Optional messageId: string

      Returns `/channels/${string}/messages/${string}/threads` | `/channels/${string}/threads`

  • user:function
    • Route for:

      • GET /users/@me
      • GET /users/{user.id}
      • PATCH /users/@me

      Parameters

      • Optional userId: string

        The user ID, defaulted to @me

      Returns `/users/${string}`

  • userApplicationRoleConnection:function
    • Route for:

      • GET /users/@me/applications/{application.id}/role-connection
      • PUT /users/@me/applications/{application.id}/role-connection

      Parameters

      • applicationId: string

      Returns `/users/@me/applications/${string}/role-connection`

  • userChannels:function
    • Route for:

      • POST /users/@me/channels

      Returns "/users/@me/channels"

  • userConnections:function
    • Route for:

      • GET /users/@me/connections

      Returns "/users/@me/connections"

  • userGuild:function
    • Route for:

      • DELETE /users/@me/guilds/{guild.id}

      Parameters

      • guildId: string

      Returns `/users/@me/guilds/${string}`

  • userGuildMember:function
    • Route for:

      • GET /users/@me/guilds/{guild.id}/member

      Parameters

      • guildId: string

      Returns `/users/@me/guilds/${string}/member`

  • userGuilds:function
    • Route for:

      • GET /users/@me/guilds

      Returns "/users/@me/guilds"

  • voiceRegions:function
    • Route for:

      • GET /voice/regions

      Returns "/voice/regions"

  • webhook:function
    • Route for:

      • GET /webhooks/{webhook.id}

      • GET /webhooks/{webhook.id}/{webhook.token}

      • PATCH /webhooks/{webhook.id}

      • PATCH /webhooks/{webhook.id}/{webhook.token}

      • DELETE /webhooks/{webhook.id}

      • DELETE /webhooks/{webhook.id}/{webhook.token}

      • POST /webhooks/{webhook.id}/{webhook.token}

      • POST /webhooks/{application.id}/{interaction.token}

      Parameters

      • webhookId: string
      • Optional webhookToken: string

      Returns `/webhooks/${string}/${string}` | `/webhooks/${string}`

  • webhookMessage:function
    • Route for:

      • GET /webhooks/{webhook.id}/{webhook.token}/messages/@original

      • GET /webhooks/{webhook.id}/{webhook.token}/messages/{message.id}

      • PATCH /webhooks/{webhook.id}/{webhook.token}/messages/@original

      • PATCH /webhooks/{webhook.id}/{webhook.token}/messages/{message.id}

      • DELETE /webhooks/{webhook.id}/{webhook.token}/messages/@original

      • DELETE /webhooks/{webhook.id}/{webhook.token}/messages/{message.id}

      • PATCH /webhooks/{application.id}/{interaction.token}/messages/@original

      • PATCH /webhooks/{application.id}/{interaction.token}/messages/{message.id}

      • DELETE /webhooks/{application.id}/{interaction.token}/messages/{message.id}

      Parameters

      • webhookId: string
      • webhookToken: string
      • Optional messageId: string

      Returns `/webhooks/${string}/${string}/messages/${string}`

  • webhookPlatform:function
    • Route for:

      • POST /webhooks/{webhook.id}/{webhook.token}/github
      • POST /webhooks/{webhook.id}/{webhook.token}/slack

      Parameters

      • webhookId: string
      • webhookToken: string
      • platform: "github" | "slack"

      Returns `/webhooks/${string}/${string}/github` | `/webhooks/${string}/${string}/slack`

Generated using TypeDoc