-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[New] Added DJ command, still not implemented.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const { SlashCommandBuilder } = require("@discordjs/builders"); | ||
const { getRoleFromMention } = require("../../modules/getUserFromMention"); | ||
|
||
module.exports = { | ||
name: "dj", | ||
description: "Set DJ Role", | ||
args: true, | ||
usage: `dj set <role>`, | ||
async run(message, args, client, defaultPrefix) { | ||
if (!args[0]) { | ||
return await message.channel.send({ | ||
embeds: [ | ||
embedMessage( | ||
"#9dcc37", | ||
`Please choose whether you want to set or delete an existing role` | ||
), | ||
], | ||
}); | ||
} | ||
|
||
if (args[0] === "set" && args[1]) { | ||
const test = await getRoleFromMention(args[1], message); | ||
} | ||
}, | ||
data: new SlashCommandBuilder() | ||
.setName("dj") | ||
.setDescription("Set DJ Role") | ||
.addStringOption((option) => | ||
option.setName("role").setDescription("DJ Role").setRequired(true) | ||
), | ||
async execute(interaction, client) {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters