[CodeFactor] Apply fixes to commit f1d36b9

This commit is contained in:
codefactor-io 2022-03-03 19:29:09 +00:00 committed by Axel Olausson Holtenäs
parent abe8e1a2d6
commit 9910b2577a
No known key found for this signature in database
GPG key ID: E3AE7E194AE017ED
2 changed files with 12 additions and 6 deletions

View file

@ -79,15 +79,20 @@ module.exports = {
async execute(interaction) {
if (interaction.options.getSubcommand() === 'balance') {
await balance(interaction);
} else if (interaction.options.getSubcommand() === 'gift') {
}
else if (interaction.options.getSubcommand() === 'gift') {
await gift(interaction);
} else if (interaction.options.getSubcommand() === 'give') {
}
else if (interaction.options.getSubcommand() === 'give') {
await give(interaction);
} else if (interaction.options.getSubcommand() === 'redeem') {
}
else if (interaction.options.getSubcommand() === 'redeem') {
await redeem(interaction);
} else if (interaction.options.getSubcommand() === 'take') {
}
else if (interaction.options.getSubcommand() === 'take') {
await take(interaction);
} else if (interaction.options.getSubcommand() === 'top') {
}
else if (interaction.options.getSubcommand() === 'top') {
await top(interaction);
}
},

View file

@ -46,7 +46,8 @@ client.on('interactionCreate', async (interaction) => {
});
await command.execute(interaction);
await logger.debug(`Executing command: ${interaction.commandName}`);
} catch (err) {
}
catch (err) {
await logger.error(err);
await interaction.reply({
embeds: [