detritus

Clientclass

The REST client: one method per Discord endpoint, with automatic ratelimit handling. Methods resolve with the raw JSON Discord sends back.

On this page
import { Client } from 'detritus-client-rest';
EventEmitterEventSpewerClient
21 properties398 methodssrc/client.ts:113

Constructor

Properties

authType
Default AuthTypes.BOT
buckets
BucketCollection
readonly
clientsideChecks
boolean
Default true
edgeRatelimitedUntil
number
Default 0
errorOnRatelimit
boolean
Default false
errorOnRatelimitIfMoreThan
number
Default 0
fingerprint?
string
optional
globalBucket
Bucket
haltOnUnauthorized
boolean
Default false
invalidRequests
number[]
Default []
invalidRequestsWarned
boolean
Default false
restClient
routes
BaseCollection<string, string>
readonly
token?
string
readonlyoptional
tokenUnauthorized
boolean
Default false

Accessors

authTypeText
string
get
invalidRequestCount
number
get
isBearer
boolean
get
isBot
boolean
get
isUser
boolean
get
tokenFormatted
string
get

Methods

acceptAgreements()

async src/client.ts:414
acceptAgreements(privacy?: boolean, terms?: boolean): Promise<any>
privacy?
boolean
Default true
terms?
boolean
Default true

acceptTeamInvite()

async src/client.ts:443
acceptTeamInvite(token: string): Promise<any>

ackChannelMessage()

async src/client.ts:476
ackChannelMessage(channelId: string, messageId: string, token: string): Promise<any>

ackChannelPins()

async src/client.ts:502
ackChannelPins(channelId: string): Promise<any>

addInviteTargetUser()

async src/client.ts:644
addInviteTargetUser(code: string, userId: string): Promise<any>

addPinnedMessage()

async src/client.ts:664
addPinnedMessage(channelId: string, messageId: string, options?: PinMessage): Promise<any>

addThreadMember()

async src/client.ts:627
addThreadMember(channelId: string, userId: string): Promise<any>

bulkAddGuildRoleMembers()

async src/client.ts:801
bulkAddGuildRoleMembers(
  guildId: string,
  roleId: string,
  options: BulkAddGuildRoleMembers,
): Promise<any>

Gives a role to many members at once, the response is what discord added Only user accounts can use this, bots get a 403

bulkOverwriteApplicationGuildCommandsPermissions()

asyncdeprecated src/client.ts:1004
bulkOverwriteApplicationGuildCommandsPermissions(
  applicationId: string,
  guildId: string,
  permissions: BulkOverwriteApplicationGuildCommandsPermissions,
): Promise<any>

Deprecated. Discord disabled this endpoint with Permissions v2, use editApplicationGuildCommandPermissions per command (Bearer token only)

consumeApplicationEntitlement()

async src/client.ts:1074
consumeApplicationEntitlement(applicationId: string, entitlementId: string): Promise<any>

createChannelStoreListingGrantEntitlement()

async src/client.ts:1304
createChannelStoreListingGrantEntitlement(channelId: string): Promise<any>

createChannelTag()

async src/client.ts:1323
createChannelTag(channelId: string, options: CreateChannelTag): Promise<any>

Adds one tag to a forum/media channel (editing the channel replaces the whole availableTags list)

createLobbyChannelInvite()

async src/client.ts:1839
createLobbyChannelInvite(lobbyId: string, userId?: string): Promise<any>
lobbyId
string
userId?
string
Default '@me'

createOauth2ApplicationBot()

async src/client.ts:2065
createOauth2ApplicationBot(applicationId: string): Promise<any>

createReaction()

async src/client.ts:2116
createReaction(channelId: string, messageId: string, emoji: string): Promise<any>

crosspostMessage()

async src/client.ts:2231
crosspostMessage(channelId: string, messageId: string): Promise<any>

deleteApplicationCommand()

async src/client.ts:2264
deleteApplicationCommand(applicationId: string, commandId: string): Promise<any>

deleteApplicationEmoji()

async src/client.ts:2278
deleteApplicationEmoji(applicationId: string, emojiId: string): Promise<any>

deleteApplicationEntitlement()

async src/client.ts:2292
deleteApplicationEntitlement(applicationId: string, entitlementId: string): Promise<any>

deleteApplicationGuildCommand()

async src/client.ts:2306
deleteApplicationGuildCommand(
  applicationId: string,
  guildId: string,
  commandId: string,
): Promise<any>

deleteChannelLinkedLobby()

async src/client.ts:2344
deleteChannelLinkedLobby(channelId: string): Promise<any>

deleteChannelTag()

async src/client.ts:2381
deleteChannelTag(
  channelId: string,
  tagId: string,
  options?: { reason?: string },
): Promise<any>
channelId
string
tagId
string
options?
{ reason?: string }
options.reason?
string

deleteConnection()

async src/client.ts:2399
deleteConnection(platform: string, accountId: string): Promise<any>

deleteGuildPremiumSubscription()

async src/client.ts:2498
deleteGuildPremiumSubscription(guildId: string, subscriptionId: string): Promise<any>

deleteGuildScheduledEventException()

async src/client.ts:2557
deleteGuildScheduledEventException(
  guildId: string,
  scheduledEventId: string,
  exceptionId: string,
): Promise<any>

deleteGuildTemplate()

async src/client.ts:2640
deleteGuildTemplate(guildId: string, templateId: string): Promise<any>

deleteMeApplicationRoleConnection()

async src/client.ts:6544
deleteMeApplicationRoleConnection(applicationId: string): Promise<any>

deleteMeBillingPaymentSource()

async src/client.ts:2693
deleteMeBillingPaymentSource(paymentSourceId: string): Promise<any>

deleteMeBillingSubscription()

async src/client.ts:2709
deleteMeBillingSubscription(subscriptionId: string): Promise<any>

deleteOauth2ApplicationAsset()

async src/client.ts:2770
deleteOauth2ApplicationAsset(applicationId: string, assetId: string): Promise<any>

deletePinnedMessage()

async src/client.ts:2787
deletePinnedMessage(
  channelId: string,
  messageId: string,
  options?: PinMessage,
): Promise<any>

deleteReaction()

async src/client.ts:2843
deleteReaction(
  channelId: string,
  messageId: string,
  emoji: string,
  userId?: string,
): Promise<any>
channelId
string
messageId
string
emoji
string
userId?
string
Default '@me'

deleteReactions()

async src/client.ts:2808
deleteReactions(channelId: string, messageId: string): Promise<any>

deleteReactionsEmoji()

async src/client.ts:2825
deleteReactionsEmoji(channelId: string, messageId: string, emoji: string): Promise<any>

deleteRelationship()

async src/client.ts:2862
deleteRelationship(userId: string): Promise<any>

deleteStoreApplicationAsset()

async src/client.ts:2898
deleteStoreApplicationAsset(applicationId: string, assetId: string): Promise<any>

editLobbyMessageModerationMetadata()

async src/client.ts:4011
editLobbyMessageModerationMetadata(
  lobbyId: string,
  messageId: string,
  metadata: Record<string, string>,
): Promise<any>

editNote()

async src/client.ts:4232
editNote(userId: string, note: string): Promise<any>

editRelationship()

async src/client.ts:4275
editRelationship(userId: string, type: number): Promise<any>

enableOauth2ApplicationAssets()

async src/client.ts:4447
enableOauth2ApplicationAssets(applicationId: string): Promise<any>

enableOauth2ApplicationRpc()

async src/client.ts:4464
enableOauth2ApplicationRpc(applicationId: string): Promise<any>

endChannelPoll()

async src/client.ts:4630
endChannelPoll(channelId: string, messageId: string): Promise<any>

executeWebhook()

async src/client.ts:4484
executeWebhook(
  webhookId: string,
  webhookToken: string,
  options?: string | ExecuteWebhook,
  compatibleType?: string,
): Promise<any>
webhookId
string
webhookToken
string
options?
compatibleType?
string

deprecated, only changes the path, use executeWebhookSlack() or executeWebhookGitHub()

executeWebhookGitHub()

async src/client.ts:4563
executeWebhookGitHub(
  webhookId: string,
  webhookToken: string,
  event: string,
  payload: Record<string, any>,
  options?: ExecuteWebhookCompatible,
): Promise<any>
webhookId
string
webhookToken
string
event
string

the X-GitHub-Event header github would send (push, issues, pull_request, ...)

payload
Record<string, any>

github's webhook payload, sent as is

fetchApplication()

async src/client.ts:4926
fetchApplication(applicationId: string): Promise<any>

fetchApplicationCommand()

async src/client.ts:4677
fetchApplicationCommand(applicationId: string, commandId: string): Promise<any>

fetchApplicationEmoji()

async src/client.ts:4707
fetchApplicationEmoji(applicationId: string, emojiId: string): Promise<any>

fetchApplicationEmojis()

async src/client.ts:4694
fetchApplicationEmojis(applicationId: string): Promise<any>

fetchApplicationEntitlement()

async src/client.ts:4721
fetchApplicationEntitlement(applicationId: string, entitlementId: string): Promise<any>

fetchApplicationGuildCommand()

async src/client.ts:4813
fetchApplicationGuildCommand(
  applicationId: string,
  guildId: string,
  commandId: string,
): Promise<any>

fetchApplicationGuildCommandPermissions()

async src/client.ts:4831
fetchApplicationGuildCommandPermissions(
  applicationId: string,
  guildId: string,
  commandId: string,
): Promise<any>

fetchApplicationGuildCommandsPermissions()

async src/client.ts:4796
fetchApplicationGuildCommandsPermissions(
  applicationId: string,
  guildId: string,
): Promise<any>

fetchApplicationNews()

async src/client.ts:4849
fetchApplicationNews(applicationIds?: string | string[]): Promise<any>

fetchApplicationNewsId()

async src/client.ts:4869
fetchApplicationNewsId(newsId: string): Promise<any>

fetchApplicationRoleConnectionsMetadata()

async src/client.ts:4885
fetchApplicationRoleConnectionsMetadata(applicationId: string): Promise<any>

fetchApplicationsDetectable()

async src/client.ts:4959
fetchApplicationsDetectable(): Promise<any>

fetchApplicationSkus()

async src/client.ts:4901
fetchApplicationSkus(applicationId: string): Promise<any>

fetchApplicationsPublic()

async src/client.ts:4968
fetchApplicationsPublic(applicationIds: string | string[]): Promise<any>

fetchApplicationsTrendingGlobal()

async src/client.ts:4984
fetchApplicationsTrendingGlobal(): Promise<any>

fetchAuthConsentRequired()

async src/client.ts:4993
fetchAuthConsentRequired(): Promise<any>

fetchChannelCall()

async src/client.ts:5018
fetchChannelCall(channelId: string): Promise<any>

fetchChannelInvites()

async src/client.ts:5035
fetchChannelInvites(channelId: string): Promise<any>

fetchChannelPostData()

async src/client.ts:5122
fetchChannelPostData(channelId: string, threadIds: string[]): Promise<any>

fetchChannelStoreListing()

async src/client.ts:5141
fetchChannelStoreListing(channelId: string): Promise<any>

fetchChannelWebhooks()

async src/client.ts:5244
fetchChannelWebhooks(channelId: string): Promise<any>

fetchDiscoverableGuilds()

async src/client.ts:5290
fetchDiscoverableGuilds(): Promise<any>

fetchDms()

async src/client.ts:5299
fetchDms(userId?: string): Promise<any>
userId?
string
Default '@me'

fetchEmojiGuild()

async src/client.ts:5313
fetchEmojiGuild(emojiId: string): Promise<any>

fetchGuildApplications()

async src/client.ts:5409
fetchGuildApplications(guildId: string, channelId?: string): Promise<any>

fetchGuildAutoModerationRule()

async src/client.ts:5469
fetchGuildAutoModerationRule(guildId: string, autoModerationRuleId: string): Promise<any>

fetchGuildAutoModerationRules()

async src/client.ts:5453
fetchGuildAutoModerationRules(guildId: string): Promise<any>

fetchGuildBan()

async src/client.ts:5540
fetchGuildBan(guildId: string, userId: string): Promise<any>

fetchGuildChannels()

async src/client.ts:5557
fetchGuildChannels(guildId: string): Promise<any>

fetchGuildEmoji()

async src/client.ts:5589
fetchGuildEmoji(guildId: string, emojiId: string): Promise<any>

fetchGuildEmojis()

async src/client.ts:5573
fetchGuildEmojis(guildId: string): Promise<any>

fetchGuildIntegrations()

async src/client.ts:5606
fetchGuildIntegrations(guildId: string): Promise<any>

fetchGuildInvites()

async src/client.ts:5622
fetchGuildInvites(guildId: string): Promise<any>

fetchGuildJoinRequestsUser()

async src/client.ts:5662
fetchGuildJoinRequestsUser(guildId: string, userId: string): Promise<any>

fetchGuildMember()

async src/client.ts:5723
fetchGuildMember(guildId: string, userId: string): Promise<any>

fetchGuildMemberPermissions()

async src/client.ts:5941
fetchGuildMemberPermissions(guildId: string, userId: string): Promise<any>

fetchGuildMemberVerification()

async src/client.ts:5740
fetchGuildMemberVerification(guildId: string): Promise<any>

fetchGuildOnboarding()

async src/client.ts:5855
fetchGuildOnboarding(guildId: string): Promise<any>

fetchGuildPremiumSubscriptions()

async src/client.ts:5756
fetchGuildPremiumSubscriptions(guildId: string): Promise<any>

fetchGuildPreview()

async src/client.ts:5976
fetchGuildPreview(guildId: string): Promise<any>

fetchGuildRole()

async src/client.ts:5868
fetchGuildRole(guildId: string, roleId: string): Promise<any>

fetchGuildRoleMemberCounts()

async src/client.ts:5883
fetchGuildRoleMemberCounts(guildId: string): Promise<any>

fetchGuildRoleMemberIds()

async src/client.ts:5897
fetchGuildRoleMemberIds(guildId: string, roleId: string): Promise<any>

fetchGuildRolePermissions()

async src/client.ts:5959
fetchGuildRolePermissions(guildId: string, roleId: string): Promise<any>

fetchGuildRoles()

async src/client.ts:6014
fetchGuildRoles(guildId: string): Promise<any>

fetchGuildSoundboardSound()

async src/client.ts:6153
fetchGuildSoundboardSound(guildId: string, soundId: string): Promise<any>

fetchGuildSoundboardSounds()

async src/client.ts:6170
fetchGuildSoundboardSounds(guildId: string): Promise<any>

fetchGuildSticker()

async src/client.ts:6279
fetchGuildSticker(guildId: string, stickerId: string): Promise<any>

fetchGuildStickers()

async src/client.ts:6296
fetchGuildStickers(guildId: string): Promise<any>

fetchGuildTemplates()

async src/client.ts:6329
fetchGuildTemplates(guildId: string): Promise<any>

fetchGuildThreadsActive()

async src/client.ts:5914
fetchGuildThreadsActive(guildId: string): Promise<any>

fetchGuildVanityUrl()

async src/client.ts:6345
fetchGuildVanityUrl(guildId: string): Promise<any>

fetchGuildVoiceState()

async src/client.ts:3879
fetchGuildVoiceState(guildId: string, userId?: string): Promise<any>
guildId
string
userId?
string
Default '@me'

fetchGuildWebhooks()

async src/client.ts:6361
fetchGuildWebhooks(guildId: string): Promise<any>

fetchGuildWelcomeScreen()

async src/client.ts:5927
fetchGuildWelcomeScreen(guildId: string): Promise<any>

fetchGuildWidget()

async src/client.ts:6377
fetchGuildWidget(guildId: string): Promise<any>

fetchGuildWidgetJson()

async src/client.ts:6393
fetchGuildWidgetJson(guildId: string): Promise<any>

fetchInviteTargetUsers()

async src/client.ts:6430
fetchInviteTargetUsers(code: string): Promise<any>

fetchInviteTargetUsersJobStatus()

async src/client.ts:6447
fetchInviteTargetUsersJobStatus(code: string): Promise<any>

fetchMeApplicationRoleConnection()

async src/client.ts:6531
fetchMeApplicationRoleConnection(applicationId: string): Promise<any>

fetchMeBillingPaymentSources()

async src/client.ts:6570
fetchMeBillingPaymentSources(): Promise<any>

fetchMeBillingSubscriptions()

async src/client.ts:6598
fetchMeBillingSubscriptions(): Promise<any>

fetchMeConnectionAccessToken()

async src/client.ts:6623
fetchMeConnectionAccessToken(platform: string, accountId: string): Promise<any>

fetchMeConnectionSubreddits()

async src/client.ts:6640
fetchMeConnectionSubreddits(accountId: string): Promise<any>

fetchMeGuildMember()

async src/client.ts:6557
fetchMeGuildMember(guildId: string): Promise<any>

fetchMessage()

async src/client.ts:6695
fetchMessage(channelId: string, messageId: string): Promise<any>

fetchMessageInteractionData()

async src/client.ts:6713
fetchMessageInteractionData(channelId: string, messageId: string): Promise<any>

fetchMeStickerPacks()

async src/client.ts:6765
fetchMeStickerPacks(countryCode?: string): Promise<any>

fetchOauth2Application()

async src/client.ts:6796
fetchOauth2Application(applicationId?: string): Promise<any>
applicationId?
string
Default '@me'

fetchOauth2ApplicationAssets()

async src/client.ts:6812
fetchOauth2ApplicationAssets(applicationId: string): Promise<any>

fetchOauth2ApplicationWhitelist()

async src/client.ts:6828
fetchOauth2ApplicationWhitelist(applicationId: string): Promise<any>

fetchOauth2AuthorizeWebhookChannels()

async src/client.ts:6864
fetchOauth2AuthorizeWebhookChannels(guildId: string): Promise<any>

fetchOauth2Token()

async src/client.ts:6891
fetchOauth2Token(tokenId: string): Promise<any>

fetchPinnedMessages()

asyncdeprecated src/client.ts:6933
fetchPinnedMessages(channelId: string): Promise<any>

Deprecated. use fetchChannelPins, this route is deprecated and capped at 50 pins

fetchSkuSubscription()

async src/client.ts:6236
fetchSkuSubscription(skuId: string, subscriptionId: string): Promise<any>

fetchSoundboardDefaultSounds()

async src/client.ts:6186
fetchSoundboardDefaultSounds(): Promise<any>

fetchStageInstance()

async src/client.ts:6978
fetchStageInstance(channelId: string): Promise<any>

fetchStickerPack()

async src/client.ts:6211
fetchStickerPack(stickerPackId: string): Promise<any>

fetchStoreApplicationAssets()

async src/client.ts:6994
fetchStoreApplicationAssets(applicationId: string): Promise<any>

fetchStorePublishedListingsSku()

async src/client.ts:7029
fetchStorePublishedListingsSku(skuId: string): Promise<any>

fetchStorePublishedListingsSkus()

async src/client.ts:7010
fetchStorePublishedListingsSkus(applicationId: string): Promise<any>

fetchStorePublishedListingsSkuSubscriptionPlans()

async src/client.ts:7045
fetchStorePublishedListingsSkuSubscriptionPlans(skuId: string): Promise<any>

fetchStreamPreview()

async src/client.ts:7061
fetchStreamPreview(streamKey: string): Promise<any>

fetchTeamApplications()

async src/client.ts:7100
fetchTeamApplications(teamId: string): Promise<any>

fetchTeamMember()

async src/client.ts:7132
fetchTeamMember(teamId: string, userId: string): Promise<any>

fetchTeamMembers()

async src/client.ts:7116
fetchTeamMembers(teamId: string): Promise<any>

fetchTemplate()

async src/client.ts:7170
fetchTemplate(templateId: string): Promise<any>

fetchThreadsBulk()

async src/client.ts:7235
fetchThreadsBulk(options: FetchThreadsBulk): Promise<any>

Fetches threads by id, missing ones are left out of items Only user accounts can use this, bots get a 403

fetchUserActivityMetadata()

async src/client.ts:7266
fetchUserActivityMetadata(
  userId: string,
  sessionId: string,
  activityId: string,
): Promise<any>

fetchUserChannels()

async src/client.ts:7284
fetchUserChannels(userId: string): Promise<any>

fetchUserProfile()

async src/client.ts:7300
fetchUserProfile(userId: string): Promise<any>

fetchVoiceRegions()

async src/client.ts:7325
fetchVoiceRegions(guildId?: string): Promise<any>

fetchWebhookToken()

async src/client.ts:7365
fetchWebhookToken(webhookId: string, webhookToken: string): Promise<any>

integrationJoin()

async src/client.ts:7449
integrationJoin(integrationId: string): Promise<any>

markTokenUnauthorized()

src/client.ts:229
markTokenUnauthorized(payload: TokenUnauthorizedPayload): void

Latches tokenUnauthorized after a 401 on our token, rejecting every request queued with it right away

on()

src/client.ts:403
on(event: string | symbol, listener: (...args: any[]) => void): this

Adds the listener function to the end of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

server.on('connection', (stream) => {
  console.log('someone connected!');
});

Returns a reference to the EventEmitter, so that calls can be chained.

By default, event listeners are invoked in the order they are added. The emitter.prependListener() method can be used as an alternative to add the event listener to the beginning of the listeners array.

import { EventEmitter } from 'node:events';
const myEE = new EventEmitter();
myEE.on('foo', () => console.log('a'));
myEE.prependListener('foo', () => console.log('b'));
myEE.emit('foo');
// Prints:
//   b
//   a

Since v0.1.101

event
string | symbol
listener
(...args: any[]) => void

The callback function

on(event: "request", listener: (payload: RequestPayload) => any): this
on(event: "response", listener: (payload: ResponsePayload) => any): this
on(event: "tokenUnauthorized", listener: (payload: TokenUnauthorizedPayload) => any): this
Overrides EventSpewer.on

refreshAttachmentUrls()

async src/client.ts:7689
refreshAttachmentUrls(urls: string[]): Promise<RefreshAttachmentUrls>

Re-signs expired cdn attachment urls (their ex, is and hm query parameters), the results are in the same order Undocumented, discord's client uses it for urls within an hour of expiring

removeInviteTargetUser()

async src/client.ts:7791
removeInviteTargetUser(code: string, userId: string): Promise<any>

removeLobbyMember()

async src/client.ts:4072
removeLobbyMember(lobbyId: string, userId?: string): Promise<any>
lobbyId
string
userId?
string
Default '@me'

removeOauth2ApplicationWhitelistUser()

async src/client.ts:7827
removeOauth2ApplicationWhitelistUser(applicationId: string, userId: string): Promise<any>

removeRecipient()

async src/client.ts:7844
removeRecipient(channelId: string, userId: string): Promise<any>

removeTeamMember()

async src/client.ts:7861
removeTeamMember(teamId: string, userId: string): Promise<any>

removeThreadMember()

async src/client.ts:7878
removeThreadMember(channelId: string, userId: string): Promise<any>

resetOauth2Application()

async src/client.ts:7895
resetOauth2Application(applicationId: string): Promise<any>

resetOauth2ApplicationBot()

async src/client.ts:7912
resetOauth2ApplicationBot(applicationId: string): Promise<any>

searchChannel()

async src/client.ts:8054
searchChannel(
  channelId: string,
  options?: SearchOptions,
  retry?: boolean,
  retryNumber?: number,
): Promise<any>
channelId
string
retry?
boolean
Default true
retryNumber?
number
Default 0

searchGuild()

async src/client.ts:8091
searchGuild(
  guildId: string,
  options?: SearchOptions,
  retry?: boolean,
  retryNumber?: number,
): Promise<any>
guildId
string
retry?
boolean
Default true
retryNumber?
number
Default 0

searchGuildMembers()

async src/client.ts:8101
searchGuildMembers(
  guildId: string,
  options?: SearchGuildMembers,
  retry?: boolean,
  retryNumber?: number,
): Promise<any>
guildId
string
retry?
boolean
Default true
retryNumber?
number
Default 0

sendDownloadText()

async src/client.ts:8164
sendDownloadText(number: string): Promise<any>

sendLobbyData()

asyncdeprecated src/client.ts:8249
sendLobbyData(lobbyId: string, data: string): Promise<any>

Deprecated. old GameSDK lobbies, use createLobbyMessage

sendSoundboardEcho()

async src/client.ts:8205
sendSoundboardEcho(channelId: string, options: SendSoundboardSound): Promise<any>

Plays a sound as an echo (discord's client sends this for soundboard sounds while a "soundboard echo" setting is on) Undocumented, only seen used by user accounts

setToken()

src/client.ts:273
setToken(token?: string): void

Swaps the token and clears tokenUnauthorized, requests already queued keep their old authorization header

submitConnectionPinCode()

async src/client.ts:8331
submitConnectionPinCode(platform: string, pin: string): Promise<any>

submitOauth2ApplicationApproval()

async src/client.ts:8348
submitOauth2ApplicationApproval(applicationId: string): Promise<any>

syncGuildIntegration()

async src/client.ts:8364
syncGuildIntegration(guildId: string, integrationId: string): Promise<any>

syncGuildTemplate()

async src/client.ts:6312
syncGuildTemplate(guildId: string, templateId: string): Promise<any>