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,
|
||||
fields: embed.fields,
|
||||
})),
|
||||
allowed_mentions: allowedMentions
|
||||
? {
|
||||
parse: allowedMentions?.parse,
|
||||
roles: allowedMentions?.roles,
|
||||
users: allowedMentions?.users,
|
||||
replied_user: allowedMentions?.repliedUser,
|
||||
}
|
||||
: undefined,
|
||||
allowed_mentions: {
|
||||
parse: allowedMentions?.parse,
|
||||
roles: allowedMentions?.roles,
|
||||
users: allowedMentions?.users,
|
||||
replied_user: allowedMentions?.repliedUser,
|
||||
},
|
||||
file: options.data.file,
|
||||
// TODO: Snakelize components??
|
||||
components: options.data.components,
|
||||
@@ -166,14 +164,12 @@ export async function sendInteractionResponse(
|
||||
: undefined,
|
||||
fields: embed.fields,
|
||||
})),
|
||||
allowed_mentions: allowedMentions
|
||||
? {
|
||||
parse: allowedMentions?.parse,
|
||||
roles: allowedMentions?.roles,
|
||||
users: allowedMentions?.users,
|
||||
replied_user: allowedMentions?.repliedUser,
|
||||
}
|
||||
: undefined,
|
||||
allowed_mentions: {
|
||||
parse: allowedMentions?.parse,
|
||||
roles: allowedMentions?.roles,
|
||||
users: allowedMentions?.users,
|
||||
replied_user: allowedMentions?.repliedUser,
|
||||
},
|
||||
file: options.data.file,
|
||||
// TODO: Snakelize components??
|
||||
components: options.data.components,
|
||||
|
||||
Reference in New Issue
Block a user