Skip to content

Commit

Permalink
[Enhancement] Various fixes for commands, print the messagecreate com…
Browse files Browse the repository at this point in the history
…mands names and not the interaction!
  • Loading branch information
naseif committed Nov 25, 2021
1 parent b543640 commit b01abc5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion commands/Admin/delrole.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = {
}
},
data: new SlashCommandBuilder()
.setName("removerole")
.setName("delrole")
.setDescription("removes a role for a user")
.addUserOption((option) =>
option.setName("user").setDescription("Select a user").setRequired(true)
Expand Down
4 changes: 2 additions & 2 deletions commands/Config/leavechannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
} = require("../../modules/getUserFromMention");

module.exports = {
name: "leave",
name: "leavechannel",
description: "Sets a custom leave channel instead of the default channel!",
args: true,
usage: `leave add <channel name || channel mention || channel id> || leave remove <channel name || channel mention || channel id>`,
Expand Down Expand Up @@ -148,7 +148,7 @@ module.exports = {
}
},
data: new SlashCommandBuilder()
.setName("leave")
.setName("leavechannel")
.setDescription(
"Sets a custom leave channel instead of the default channel!"
)
Expand Down
4 changes: 2 additions & 2 deletions commands/Config/welcomechannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
} = require("../../modules/getUserFromMention");

module.exports = {
name: "welcome",
name: "welcomechannel",
description: "Sets a custom welcome channel instead of the default channel!",
args: true,
usage: `welcome add <channel name || channel mention || channel id> || welcome remove <channel name || channel mention || channel id>`,
Expand Down Expand Up @@ -149,7 +149,7 @@ module.exports = {
}
},
data: new SlashCommandBuilder()
.setName("welcome")
.setName("welcomechannel")
.setDescription(
"Sets a custom welcome channel instead of the default channel!"
)
Expand Down
2 changes: 1 addition & 1 deletion commands/Misc/perms.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = {
}
},
data: new SlashCommandBuilder()
.setName("perms")
.setName("permissions")
.setDescription("Shows the permission for another member or your own")
.addUserOption((option) =>
option.setName("user").setDescription("Select a user")
Expand Down
4 changes: 2 additions & 2 deletions modules/commandsHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ let commandsHelper = function () {
client.logger(`Found ${commands.length} Commands, Loading...`);

for (const command of commands) {
client.logger(`Loaded ${command.data.name}`);
client.commands.set(command.data.name, command);
client.logger(`Loaded ${command.name}`);
client.commands.set(command.name, command);
}
};

Expand Down

0 comments on commit b01abc5

Please sign in to comment.