mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-12-22 18:35:29 +00:00
Moved grantDeveloper role permission into env file.
This commit is contained in:
parent
369d01bcb9
commit
9d15288d9c
1
env.json
1
env.json
|
@ -26,6 +26,7 @@
|
|||
"DISCORD_RULES_ROLE": {
|
||||
"description": "The unique ID for the role that the bot will *remove* when the user accepts the rules."
|
||||
},
|
||||
"DISCORD_DEVELOPER_ROLE": true,
|
||||
"DISCORD_LOGIN_TOKEN": {
|
||||
"description": "The login token of the bot."
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
exports.roles = ['Admins', 'Moderators', 'CitraBot'];
|
||||
exports.command = function (message) {
|
||||
var role = '345247291843805185';
|
||||
var role = process.env.DISCORD_DEVELOPER_ROLE
|
||||
message.mentions.users.map((user) => {
|
||||
let member = message.guild.member(user);
|
||||
let alreadyJoined = member.roles.has(role);
|
||||
|
|
Loading…
Reference in a new issue