[CodeFactor] Apply fixes to commit f1d36b9
This commit is contained in:
parent
abe8e1a2d6
commit
9910b2577a
2 changed files with 12 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Add table
Reference in a new issue