forked from Galactic/galactic-bot
client permissions
This commit is contained in:
parent
f05c803597
commit
69d91d3a1e
@ -29,6 +29,7 @@ class BanCommand extends ModerationCommand {
|
||||
showUsage: true,
|
||||
guildOnly: true,
|
||||
memberPermissions: ['BAN_MEMBERS'],
|
||||
clientPermissions: ['BAN_MEMBERS'],
|
||||
skipOptions: ['prune']
|
||||
});
|
||||
|
||||
|
@ -27,6 +27,7 @@ class CaseCommand extends SlashCommand {
|
||||
}],
|
||||
guildOnly: true,
|
||||
showUsage: true,
|
||||
clientPermissions: ['MANAGE_MESSAGES'],
|
||||
memberPermissions: ['MANAGE_MESSAGES']
|
||||
});
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ class DehoistCommand extends ModerationCommand {
|
||||
module: 'moderation',
|
||||
options: [ ],
|
||||
memberPermissions: ['MANAGE_NICKNAMES'],
|
||||
clientPermissions: ['MANAGE_NICKNAMES'],
|
||||
guildOnly: true
|
||||
});
|
||||
|
||||
|
@ -19,6 +19,7 @@ class HistoryCommand extends SlashCommand {
|
||||
description: 'List past infractions',
|
||||
module: 'moderation',
|
||||
memberPermissions: ['MANAGE_MESSAGES'],
|
||||
clientPermissions: ['EMBED_LINKS'],
|
||||
guildOnly: true,
|
||||
options: [{
|
||||
name: ['before', 'after'],
|
||||
|
@ -11,7 +11,8 @@ class KickCommand extends ModerationCommand {
|
||||
options: [],
|
||||
guildOnly: true,
|
||||
showUsage: true,
|
||||
memberPermissions: ['KICK_MEMBERS']
|
||||
memberPermissions: ['KICK_MEMBERS'],
|
||||
clientPermissions: ['KICK_MEMBERS'],
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,7 @@ class LockdownCommand extends ModerationCommand {
|
||||
guildOnly: true,
|
||||
showUsage: true,
|
||||
memberPermissions: ['MANAGE_CHANNELS'],
|
||||
clientPermissions: ['MANAGE_CHANNELS'],
|
||||
skipOptions: ['users']
|
||||
});
|
||||
|
||||
|
@ -8,6 +8,7 @@ class ModtimersCommand extends SlashCommand {
|
||||
description: 'List active timed infractions',
|
||||
module: 'moderation',
|
||||
memberPermissions: ['MANAGE_MESSAGES'],
|
||||
clientPermissions: ['EMBED_LINKS'],
|
||||
guildOnly: true
|
||||
});
|
||||
}
|
||||
|
@ -15,7 +15,8 @@ class MuteCommand extends ModerationCommand {
|
||||
}],
|
||||
guildOnly: true,
|
||||
showUsage: true,
|
||||
memberPermissions: ['MODERATE_MEMBERS']
|
||||
memberPermissions: ['MODERATE_MEMBERS'],
|
||||
clientPermissions: ['MODERATE_MEMBERS', 'MANAGE_ROLES']
|
||||
// Mute client permissions are handled in the infraction.verify due to being able to use both timeout and role based mutes
|
||||
});
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ class NicknameCommand extends ModerationCommand {
|
||||
type: 'STRING'
|
||||
}],
|
||||
memberPermissions: ['MANAGE_NICKNAMES'],
|
||||
clientPermissions: ['MANAGE_NICKNAMES'],
|
||||
guildOnly: true
|
||||
});
|
||||
|
||||
|
@ -84,7 +84,8 @@ class PruneCommand extends ModerationCommand {
|
||||
overrideOptions: true,
|
||||
guildOnly: true,
|
||||
showUsage: true,
|
||||
memberPermissions: ['MANAGE_CHANNELS']
|
||||
memberPermissions: ['MANAGE_CHANNELS'],
|
||||
clientPermissions: ['MANAGE_MESSAGES'],
|
||||
});
|
||||
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ class AddroleCommand extends ModerationCommand {
|
||||
},
|
||||
],
|
||||
memberPermissions: ['MANAGE_ROLES'],
|
||||
clientPermissions: ['MANAGE_ROLES'],
|
||||
skipOptions: ['points', 'expiration', 'force', 'prune']
|
||||
});
|
||||
|
||||
|
@ -10,6 +10,7 @@ class SlowmodeCommand extends ModerationCommand {
|
||||
showUsage: true,
|
||||
guildOnly: true,
|
||||
memberPermissions: ['MANAGE_CHANNELS'],
|
||||
clientPermissions: ['MANAGE_CHANNELS'],
|
||||
options: [
|
||||
{
|
||||
name: 'channels',
|
||||
|
@ -9,6 +9,7 @@ class SoftbanCommand extends ModerationCommand {
|
||||
module: 'moderation',
|
||||
description: 'Remove member from server and purge messages',
|
||||
memberPermissions: ['KICK_MEMBERS'],
|
||||
clientPermissions: ['KICK_MEMBERS'],
|
||||
options: [{
|
||||
name: 'days',
|
||||
type: 'INTEGER',
|
||||
|
@ -8,7 +8,7 @@ class StaffCommand extends SlashCommand {
|
||||
description: 'Summon staff',
|
||||
module: 'moderation',
|
||||
guildOnly: true,
|
||||
clientPermissions: ['MENTION_EVERYONE']
|
||||
clientPermissions: ['MENTION_EVERYONE', 'EMBED_LINKS']
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,7 @@ class UnbanCommand extends ModerationCommand {
|
||||
module: 'moderation',
|
||||
description: 'Remove member from server and purge messages',
|
||||
memberPermissions: ['BAN_MEMBERS'],
|
||||
clientPermissions: ['BAN_MEMBERS'],
|
||||
options: [{
|
||||
name: 'users',
|
||||
type: 'USERS',
|
||||
|
@ -17,6 +17,7 @@ class UnlockdownCommand extends ModerationCommand {
|
||||
guildOnly: true,
|
||||
showUsage: true,
|
||||
memberPermissions: ['MANAGE_CHANNELS'],
|
||||
clientPermissions: ['MANAGE_CHANNELS'],
|
||||
skipOptions: ['users']
|
||||
});
|
||||
|
||||
|
@ -12,6 +12,7 @@ class UnmuteCommand extends ModerationCommand {
|
||||
guildOnly: true,
|
||||
showUsage: true,
|
||||
memberPermissions: ['MODERATE_MEMBERS'],
|
||||
clientPermissions: ['MANAGE_ROLES', 'MODERATE_MEMBERS'],
|
||||
skipOptions: ['points', 'expiration', 'prune', 'force']
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user