Update send_interaction_response.ts

This commit is contained in:
TriForMine
2021-10-30 15:40:58 +02:00
committed by GitHub
parent 12ea44e838
commit a539673de1
@@ -88,14 +88,12 @@ export async function sendInteractionResponse(
: undefined,
fields: embed.fields,
})),
allowed_mentions: allowedMentions
? {
allowed_mentions: {
parse: allowedMentions?.parse,
roles: allowedMentions?.roles,
users: allowedMentions?.users,
replied_user: allowedMentions?.repliedUser,
}
: undefined,
},
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
? {
allowed_mentions: {
parse: allowedMentions?.parse,
roles: allowedMentions?.roles,
users: allowedMentions?.users,
replied_user: allowedMentions?.repliedUser,
}
: undefined,
},
file: options.data.file,
// TODO: Snakelize components??
components: options.data.components,