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, : 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,