Update StaffTag.plugin.js
This commit is contained in:
parent
2bac318cce
commit
4439a17cae
|
@ -2,7 +2,7 @@
|
||||||
* @name StaffTag
|
* @name StaffTag
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.4.9
|
* @version 1.5.0
|
||||||
* @description Adds a Crown/Tag to Server Owners (or Admins/Management)
|
* @description Adds a Crown/Tag to Server Owners (or Admins/Management)
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,12 +17,12 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "StaffTag",
|
"name": "StaffTag",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.4.9",
|
"version": "1.5.0",
|
||||||
"description": "Adds a Crown/Tag to Server Owners (or Admins/Management)"
|
"description": "Adds a Crown/Tag to Server Owners (or Admins/Management)"
|
||||||
},
|
},
|
||||||
"changeLog": {
|
"changeLog": {
|
||||||
"added": {
|
"added": {
|
||||||
"Ignore Myself": "Added Option to not add tags for yourself"
|
"More Management Permission Sub Types": "Added new Sub Types (Threads, Event, Voice Channels [kick, mute, move])"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -101,8 +101,11 @@ module.exports = (_ => {
|
||||||
admins: {value: true, description: "Admin Tag (Admin Permissions)"},
|
admins: {value: true, description: "Admin Tag (Admin Permissions)"},
|
||||||
managementG: {value: true, description: "Management Tag (Server Management)"},
|
managementG: {value: true, description: "Management Tag (Server Management)"},
|
||||||
managementC: {value: true, description: "Management Tag (Channel Management)"},
|
managementC: {value: true, description: "Management Tag (Channel Management)"},
|
||||||
|
managementT: {value: true, description: "Management Tag (Threads Management)"},
|
||||||
|
managementE: {value: true, description: "Management Tag (Events Management)"},
|
||||||
managementR: {value: true, description: "Management Tag (Role Management)"},
|
managementR: {value: true, description: "Management Tag (Role Management)"},
|
||||||
managementU: {value: true, description: "Management Tag (User Management 'Kick/Ban')"},
|
managementU: {value: true, description: "Management Tag (User Management 'Kick/Ban')"},
|
||||||
|
managementV: {value: true, description: "Management Tag (Voice Management 'Mute/Deafen/Move')"},
|
||||||
managementM: {value: true, description: "Management Tag (Message Management)"}
|
managementM: {value: true, description: "Management Tag (Message Management)"}
|
||||||
},
|
},
|
||||||
tagPlaces: {
|
tagPlaces: {
|
||||||
|
@ -393,8 +396,12 @@ module.exports = (_ => {
|
||||||
return [
|
return [
|
||||||
this.settings.tagTypes.managementG && BDFDB.UserUtils.can("MANAGE_GUILD", user.id) && BDFDB.LanguageUtils.LibraryStrings.server,
|
this.settings.tagTypes.managementG && BDFDB.UserUtils.can("MANAGE_GUILD", user.id) && BDFDB.LanguageUtils.LibraryStrings.server,
|
||||||
this.settings.tagTypes.managementC && BDFDB.UserUtils.can("MANAGE_CHANNELS", user.id) && BDFDB.LanguageUtils.LanguageStrings.CHANNELS,
|
this.settings.tagTypes.managementC && BDFDB.UserUtils.can("MANAGE_CHANNELS", user.id) && BDFDB.LanguageUtils.LanguageStrings.CHANNELS,
|
||||||
|
this.settings.tagTypes.managementT && BDFDB.UserUtils.can("MANAGE_THREADS", user.id) && BDFDB.LanguageUtils.LanguageStrings.THREADS,
|
||||||
|
this.settings.tagTypes.managementE && BDFDB.UserUtils.can("MANAGE_EVENTS", user.id) && BDFDB.LanguageUtils.LanguageStrings.GUILD_EVENTS,
|
||||||
|
this.settings.tagTypes.managementC && BDFDB.UserUtils.can("MANAGE_CHANNELS", user.id) && BDFDB.LanguageUtils.LanguageStrings.CHANNELS,
|
||||||
this.settings.tagTypes.managementR && BDFDB.UserUtils.can("MANAGE_ROLES", user.id) && BDFDB.LanguageUtils.LanguageStrings.ROLES,
|
this.settings.tagTypes.managementR && BDFDB.UserUtils.can("MANAGE_ROLES", user.id) && BDFDB.LanguageUtils.LanguageStrings.ROLES,
|
||||||
this.settings.tagTypes.managementU && (BDFDB.UserUtils.can("BAN_MEMBERS", user.id) || BDFDB.UserUtils.can("KICK_MEMBERS", user.id)) && BDFDB.LanguageUtils.LanguageStrings.MEMBERS,
|
this.settings.tagTypes.managementU && (BDFDB.UserUtils.can("BAN_MEMBERS", user.id) || BDFDB.UserUtils.can("KICK_MEMBERS", user.id)) && BDFDB.LanguageUtils.LanguageStrings.MEMBERS,
|
||||||
|
this.settings.tagTypes.managementV && (BDFDB.UserUtils.can("MUTE_MEMBERS", user.id) || BDFDB.UserUtils.can("DEAFEN_MEMBERS", user.id) || BDFDB.UserUtils.can("MOVE_MEMBERS", user.id)) && BDFDB.LanguageUtils.LanguageStrings.VOICE_AND_VIDEO,
|
||||||
this.settings.tagTypes.managementM && BDFDB.UserUtils.can("MANAGE_MESSAGES", user.id) && BDFDB.LanguageUtils.LanguageStrings.MESSAGES
|
this.settings.tagTypes.managementM && BDFDB.UserUtils.can("MANAGE_MESSAGES", user.id) && BDFDB.LanguageUtils.LanguageStrings.MESSAGES
|
||||||
].filter(n => n).join(", ");
|
].filter(n => n).join(", ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue