mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-29 06:01:02 +00:00
fix(bot-discord): fix permission checking
This commit is contained in:
@@ -24,7 +24,7 @@ export default {
|
|||||||
.setDescription('Reason for the ban')
|
.setDescription('Reason for the ban')
|
||||||
),
|
),
|
||||||
async execute(_, config, interaction) {
|
async execute(_, config, interaction) {
|
||||||
if (!checkForPerms(config, interaction.member)) return interaction.reply({
|
if (checkForPerms(config, interaction.member)) return interaction.reply({
|
||||||
epheremal: true,
|
epheremal: true,
|
||||||
content: 'You don\'t have the required permissions.'
|
content: 'You don\'t have the required permissions.'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export default {
|
|||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
),
|
),
|
||||||
async execute(_, config, interaction) {
|
async execute(_, config, interaction) {
|
||||||
if (!checkForPerms(config, interaction.member)) return interaction.reply({
|
if (checkForPerms(config, interaction.member)) return interaction.reply({
|
||||||
epheremal: true,
|
epheremal: true,
|
||||||
content: 'You don\'t have the required permissions.'
|
content: 'You don\'t have the required permissions.'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export default {
|
|||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
),
|
),
|
||||||
async execute(_, config, interaction) {
|
async execute(_, config, interaction) {
|
||||||
if (!checkForPerms(config, interaction.member)) return interaction.reply({
|
if (checkForPerms(config, interaction.member)) return interaction.reply({
|
||||||
epheremal: true,
|
epheremal: true,
|
||||||
content: 'You don\'t have the required permissions.'
|
content: 'You don\'t have the required permissions.'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default {
|
|||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
),
|
),
|
||||||
async execute(_, config, interaction) {
|
async execute(_, config, interaction) {
|
||||||
if (!checkForPerms(config, interaction.member)) return interaction.reply({
|
if (checkForPerms(config, interaction.member)) return interaction.reply({
|
||||||
epheremal: true,
|
epheremal: true,
|
||||||
content: 'You don\'t have the required permissions.'
|
content: 'You don\'t have the required permissions.'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default {
|
|||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
),
|
),
|
||||||
async execute(_, config, interaction) {
|
async execute(_, config, interaction) {
|
||||||
if (!checkForPerms(config, interaction.member)) return interaction.reply({
|
if (checkForPerms(config, interaction.member)) return interaction.reply({
|
||||||
epheremal: true,
|
epheremal: true,
|
||||||
content: 'You don\'t have the required permissions.'
|
content: 'You don\'t have the required permissions.'
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user