mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
Update send_interaction_response.ts
This commit is contained in:
@@ -88,14 +88,12 @@ export async function sendInteractionResponse(
|
|||||||
: undefined,
|
: undefined,
|
||||||
fields: embed.fields,
|
fields: embed.fields,
|
||||||
})),
|
})),
|
||||||
allowed_mentions: allowedMentions
|
allowed_mentions: {
|
||||||
? {
|
parse: allowedMentions?.parse,
|
||||||
parse: allowedMentions?.parse,
|
roles: allowedMentions?.roles,
|
||||||
roles: allowedMentions?.roles,
|
users: allowedMentions?.users,
|
||||||
users: allowedMentions?.users,
|
replied_user: allowedMentions?.repliedUser,
|
||||||
replied_user: allowedMentions?.repliedUser,
|
},
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
file: options.data.file,
|
file: options.data.file,
|
||||||
// TODO: Snakelize components??
|
// TODO: Snakelize components??
|
||||||
components: options.data.components,
|
components: options.data.components,
|
||||||
@@ -166,14 +164,12 @@ export async function sendInteractionResponse(
|
|||||||
: undefined,
|
: undefined,
|
||||||
fields: embed.fields,
|
fields: embed.fields,
|
||||||
})),
|
})),
|
||||||
allowed_mentions: allowedMentions
|
allowed_mentions: {
|
||||||
? {
|
parse: allowedMentions?.parse,
|
||||||
parse: allowedMentions?.parse,
|
roles: allowedMentions?.roles,
|
||||||
roles: allowedMentions?.roles,
|
users: allowedMentions?.users,
|
||||||
users: allowedMentions?.users,
|
replied_user: allowedMentions?.repliedUser,
|
||||||
replied_user: allowedMentions?.repliedUser,
|
},
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
file: options.data.file,
|
file: options.data.file,
|
||||||
// TODO: Snakelize components??
|
// TODO: Snakelize components??
|
||||||
components: options.data.components,
|
components: options.data.components,
|
||||||
|
|||||||
Reference in New Issue
Block a user