mirror of
https://github.com/danbulant/Shasha
synced 2026-07-05 11:00:58 +00:00
WTF IS AN "idAdmin"??????
This commit is contained in:
parent
0f7661107b
commit
a1b5e6af17
5 changed files with 10 additions and 10 deletions
|
|
@ -26,8 +26,8 @@ module.exports = class ban extends commando.Command {
|
||||||
*/
|
*/
|
||||||
async run(msg, arg) {
|
async run(msg, arg) {
|
||||||
const CL = msg.guild.member(msg.client.user);
|
const CL = msg.guild.member(msg.client.user);
|
||||||
if (!(msg.member.idAdmin || msg.member.hasPermission("BAN_MEMBER"))) return trySend(msg.client, msg, "bruh moment <:nekokekLife:852865942530949160>");
|
if (!(msg.member.isAdmin || msg.member.hasPermission("BAN_MEMBER"))) return trySend(msg.client, msg, "bruh moment <:nekokekLife:852865942530949160>");
|
||||||
if (!(CL.idAdmin || CL.hasPermission("BAN_MEMBER"))) return trySend(msg.client, msg, "I don't have the power to do that <:pepewhysobLife:853237646666891274>");
|
if (!(CL.isAdmin || CL.hasPermission("BAN_MEMBER"))) return trySend(msg.client, msg, "I don't have the power to do that <:pepewhysobLife:853237646666891274>");
|
||||||
if (!arg) return trySend(msg.client, msg,
|
if (!arg) return trySend(msg.client, msg,
|
||||||
"Args: `user_[name|mention|ID] -- [reason] -- [duration] [--d [number of days to delete messages of the user to ban]]`. Separate `user` with `,`. Example:" +
|
"Args: `user_[name|mention|ID] -- [reason] -- [duration] [--d [number of days to delete messages of the user to ban]]`. Separate `user` with `,`. Example:" +
|
||||||
`\`\`\`js\n${msg.guild.commandPrefix + this.name
|
`\`\`\`js\n${msg.guild.commandPrefix + this.name
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,8 @@ module.exports = class mute extends commando.Command {
|
||||||
*/
|
*/
|
||||||
async run(msg, arg) {
|
async run(msg, arg) {
|
||||||
const CL = msg.guild.member(msg.client.user);
|
const CL = msg.guild.member(msg.client.user);
|
||||||
if (!(msg.member.idAdmin || msg.member.hasPermission("MANAGE_ROLES"))) return trySend(msg.client, msg, "Who are you <:nekohmLife:846371737644957786>");
|
if (!(msg.member.isAdmin || msg.member.hasPermission("MANAGE_ROLES"))) return trySend(msg.client, msg, "Who are you <:nekohmLife:846371737644957786>");
|
||||||
if (!(CL.idAdmin || CL.hasPermission("MANAGE_ROLES"))) return trySend(msg.client, msg, "I don't have the power to do that <:pepewhysobLife:853237646666891274>");
|
if (!(CL.isAdmin || CL.hasPermission("MANAGE_ROLES"))) return trySend(msg.client, msg, "I don't have the power to do that <:pepewhysobLife:853237646666891274>");
|
||||||
msg.channel.startTyping();
|
msg.channel.startTyping();
|
||||||
if (!msg.guild.DB) await msg.guild.dbLoad();
|
if (!msg.guild.DB) await msg.guild.dbLoad();
|
||||||
const MOD = msg.guild.DB.settings,
|
const MOD = msg.guild.DB.settings,
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ module.exports = class unbanCmd extends commando.Command {
|
||||||
|
|
||||||
async run(msg, arg) {
|
async run(msg, arg) {
|
||||||
const CL = msg.guild.member(msg.client.user);
|
const CL = msg.guild.member(msg.client.user);
|
||||||
if (!msg.member.idAdmin) return trySend(msg.client, msg, "are they your friend? <:nekokekLife:852865942530949160>");
|
if (!msg.member.isAdmin) return trySend(msg.client, msg, "are they your friend? <:nekokekLife:852865942530949160>");
|
||||||
if (!CL.idAdmin) return trySend(msg.client, msg, "I don't have the power to do that <:pepewhysobLife:853237646666891274>");
|
if (!CL.isAdmin) return trySend(msg.client, msg, "I don't have the power to do that <:pepewhysobLife:853237646666891274>");
|
||||||
if (!arg) return trySend(msg.client, msg, "Provide `user_ID` to unban. Separate `user` with `,`. Example:```js\n" +
|
if (!arg) return trySend(msg.client, msg, "Provide `user_ID` to unban. Separate `user` with `,`. Example:```js\n" +
|
||||||
`${msg.guild.commandPrefix + this.name} 757453290714824844, 706039105540194314, 198558078508072960 ` +
|
`${msg.guild.commandPrefix + this.name} 757453290714824844, 706039105540194314, 198558078508072960 ` +
|
||||||
`-- sent me some nice materials for tonight\`\`\``);
|
`-- sent me some nice materials for tonight\`\`\``);
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ module.exports = class unmute extends commando.Command {
|
||||||
|
|
||||||
async run(msg, arg) {
|
async run(msg, arg) {
|
||||||
const CL = msg.guild.member(msg.client.user);
|
const CL = msg.guild.member(msg.client.user);
|
||||||
if (!(msg.member.idAdmin || msg.member.hasPermission("MANAGE_ROLES"))) return trySend(msg.client, msg, "I refusee! <:nekohmLife:846371737644957786>");
|
if (!(msg.member.isAdmin || msg.member.hasPermission("MANAGE_ROLES"))) return trySend(msg.client, msg, "I refusee! <:nekohmLife:846371737644957786>");
|
||||||
if (!(CL.idAdmin || CL.hasPermission("MANAGE_ROLES"))) return trySend(msg.client, msg, "I don't have the power to do that <:pepewhysobLife:853237646666891274>");
|
if (!(CL.isAdmin || CL.hasPermission("MANAGE_ROLES"))) return trySend(msg.client, msg, "I don't have the power to do that <:pepewhysobLife:853237646666891274>");
|
||||||
if (!msg.guild.DB) await msg.guild.dbLoad();
|
if (!msg.guild.DB) await msg.guild.dbLoad();
|
||||||
msg.channel.startTyping();
|
msg.channel.startTyping();
|
||||||
if (!arg) return trySend(msg.client, msg, "Provide `user_ID` to unmute. Separate `user` with `,`. Example:```js\n" +
|
if (!arg) return trySend(msg.client, msg, "Provide `user_ID` to unmute. Separate `user` with `,`. Example:```js\n" +
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,7 @@ Structures.extend("User", u => {
|
||||||
const CL = guild.member(this.client.user);
|
const CL = guild.member(this.client.user);
|
||||||
|
|
||||||
if (!(CL.isAdmin || CL.hasPermission("MANAGE_ROLES")) ||
|
if (!(CL.isAdmin || CL.hasPermission("MANAGE_ROLES")) ||
|
||||||
!(data.moderator.idAdmin || data.moderator.hasPermission("MANAGE_ROLES"))) throw new Error("Missing Permissions");
|
!(data.moderator.isAdmin || data.moderator.hasPermission("MANAGE_ROLES"))) throw new Error("Missing Permissions");
|
||||||
|
|
||||||
if (MEM) {
|
if (MEM) {
|
||||||
if (data.moderator.roles.highest.position <= MEM.roles.highest.position ||
|
if (data.moderator.roles.highest.position <= MEM.roles.highest.position ||
|
||||||
|
|
@ -263,7 +263,7 @@ Structures.extend("User", u => {
|
||||||
const MEM = guild.member(this);
|
const MEM = guild.member(this);
|
||||||
const CL = guild.member(this.client.user);
|
const CL = guild.member(this.client.user);
|
||||||
if (!(CL.isAdmin || CL.hasPermission("MANAGE_ROLES")) ||
|
if (!(CL.isAdmin || CL.hasPermission("MANAGE_ROLES")) ||
|
||||||
!(moderator.idAdmin || moderator.hasPermission("MANAGE_ROLES"))) throw new Error("Missing Permissions");
|
!(moderator.isAdmin || moderator.hasPermission("MANAGE_ROLES"))) throw new Error("Missing Permissions");
|
||||||
if (!guild.DB) await guild.dbLoad();
|
if (!guild.DB) await guild.dbLoad();
|
||||||
|
|
||||||
if (!this.bot) {
|
if (!this.bot) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue