[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) {
|
async execute(interaction) {
|
||||||
if (interaction.options.getSubcommand() === 'balance') {
|
if (interaction.options.getSubcommand() === 'balance') {
|
||||||
await balance(interaction);
|
await balance(interaction);
|
||||||
} else if (interaction.options.getSubcommand() === 'gift') {
|
}
|
||||||
|
else if (interaction.options.getSubcommand() === 'gift') {
|
||||||
await gift(interaction);
|
await gift(interaction);
|
||||||
} else if (interaction.options.getSubcommand() === 'give') {
|
}
|
||||||
|
else if (interaction.options.getSubcommand() === 'give') {
|
||||||
await give(interaction);
|
await give(interaction);
|
||||||
} else if (interaction.options.getSubcommand() === 'redeem') {
|
}
|
||||||
|
else if (interaction.options.getSubcommand() === 'redeem') {
|
||||||
await redeem(interaction);
|
await redeem(interaction);
|
||||||
} else if (interaction.options.getSubcommand() === 'take') {
|
}
|
||||||
|
else if (interaction.options.getSubcommand() === 'take') {
|
||||||
await take(interaction);
|
await take(interaction);
|
||||||
} else if (interaction.options.getSubcommand() === 'top') {
|
}
|
||||||
|
else if (interaction.options.getSubcommand() === 'top') {
|
||||||
await top(interaction);
|
await top(interaction);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -46,7 +46,8 @@ client.on('interactionCreate', async (interaction) => {
|
||||||
});
|
});
|
||||||
await command.execute(interaction);
|
await command.execute(interaction);
|
||||||
await logger.debug(`Executing command: ${interaction.commandName}`);
|
await logger.debug(`Executing command: ${interaction.commandName}`);
|
||||||
} catch (err) {
|
}
|
||||||
|
catch (err) {
|
||||||
await logger.error(err);
|
await logger.error(err);
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
|
|
Loading…
Add table
Reference in a new issue