debug config remove bot_admin_role
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -652,10 +652,10 @@ module.exports = {
|
||||
})
|
||||
}
|
||||
let action = '';
|
||||
let roleId = interaction.customId.split('-')[2];
|
||||
if (interaction.customId.split('-')[1]=='yes') {
|
||||
let role = interaction.customId.split('-')[2];
|
||||
action = 'removed';
|
||||
client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID}, {$pull: {"server.botAdminRoles": role}}, function(err, res) {
|
||||
client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID}, {$pull: {"server.botAdminRoles": roleId}}, function(err, res) {
|
||||
if (err) return client.sendInternalError(interaction, err);
|
||||
});
|
||||
} else if (interaction.customId.split('-')[1]=='no') action = 'kept';
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dayz-armbands",
|
||||
"version": "6.0.2",
|
||||
"version": "6.0.3",
|
||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||
"main": "index.js",
|
||||
"nodemonConfig": {
|
||||
|
||||
Reference in new issue
Block a user