change: prettier code

This commit is contained in:
Skillz4Killz
2021-11-10 20:35:03 +00:00
committed by GitHub Action
parent 0f91120769
commit 370d62be04
15 changed files with 43 additions and 65 deletions
@@ -28,12 +28,14 @@ export async function sendInteractionResponse(
options.data = { ...options.data, allowedMentions: { parse: [] } };
}
const allowedMentions: AllowedMentions = options.data?.allowedMentions ? {
parse: options.data?.allowedMentions.parse,
repliedUser: options.data?.allowedMentions.repliedUser,
users: options.data?.allowedMentions.users?.map(id => id.toString()),
roles: options.data?.allowedMentions.roles?.map(id => id.toString()),
} : { parse: [] };
const allowedMentions: AllowedMentions = options.data?.allowedMentions
? {
parse: options.data?.allowedMentions.parse,
repliedUser: options.data?.allowedMentions.repliedUser,
users: options.data?.allowedMentions.users?.map((id) => id.toString()),
roles: options.data?.allowedMentions.roles?.map((id) => id.toString()),
}
: { parse: [] };
// If its already been executed, we need to send a followup response
if (bot.cache.executedSlashCommands.has(token)) {