Skip to content

Commit

Permalink
Fix syntax error in guildleave.js (#224)
Browse files Browse the repository at this point in the history
i fix code
  • Loading branch information
LewdHuTao authored Mar 29, 2024
2 parents e533a46 + a3d2c20 commit 1106d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djs-bot/commands/misc/guildleave.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
if (!guild) {
return interaction.reply({ content: `\`${id}\` is not a valid guild ID`, ephemeral: true });
}

try {
await guild.leave();
return interaction.reply({ content: `Left guild \`${id}\``, ephemeral: true });
} catch (error) {
Expand Down

0 comments on commit 1106d95

Please sign in to comment.