Skip to content

Commit

Permalink
[Fix] set the int option to required for the deleteMessage command
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Aug 30, 2021
1 parent 6aa0094 commit aa33587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/admin/deleteMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
.setName("deletemessages")
.setDescription("deletes x number of messages")
.addIntegerOption((option) =>
option.setName("int").setDescription("Enter an integer")
option.setName("int").setDescription("Enter an integer").setRequired(true)
),
async execute(interaction, client) {
const integer = interaction.options.getInteger("int");
Expand Down

0 comments on commit aa33587

Please sign in to comment.