Skip to content

Commit

Permalink
fix tipo
Browse files Browse the repository at this point in the history
  • Loading branch information
clementvt committed Nov 13, 2024
1 parent 1422623 commit 0fce640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/src/commands/admin/reloadCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class reloadCommands implements CommandType {
.setName(this.name)
.setDescription(this.description)
.addBooleanOption((option) =>
option.setName("reloadRest").setDescription("Send new commands to rest").setRequired(false)
option.setName("reloadrest").setDescription("Send new commands to rest").setRequired(false)
);
async execute(
interaction: ChatInputCommandInteraction,
Expand All @@ -30,7 +30,7 @@ export default class reloadCommands implements CommandType {
content: "You are not allowed to use this command.",
ephemeral: true,
});
const reloadRest = interaction.options.getBoolean("reloadRest") || false;
const reloadRest = interaction.options.getBoolean("reloadrest") || false;
await client.cluster.broadcastEval(async (c) => {
await c.loadCommands(reloadRest);
});
Expand Down

0 comments on commit 0fce640

Please sign in to comment.