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