mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
fix(api): various fixes for overlooked stuff (#9588)
* types(GuildsAPI): fix `getWidgetSettings()` result type * types(GuildsAPI): fix `beginPrune()` result type * types(GuildsAPI): fix `editAutoModerationRule()` result type * types(ApplicationCommandsAPI): fix guild application types * types(GuildsAPI): fix `createTemplate()` body type * fix(InteractionsAPI): make `followUp()` return the message According to the Discord docs, creating a followup message is the same as executing a webhook, but *wait is always true*, meaning we always get the message. * types(WebhooksAPI): fix result types
This commit is contained in:
@@ -103,7 +103,7 @@ export class InteractionsAPI {
|
||||
body: APIInteractionResponseCallbackData & { files?: RawFile[] },
|
||||
{ signal }: Pick<RequestData, 'signal'> = {},
|
||||
) {
|
||||
await this.webhooks.execute(applicationId, interactionToken, body, { signal });
|
||||
return this.webhooks.execute(applicationId, interactionToken, { ...body, wait: true }, { signal });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user