utility: fix !clean permission check
This commit is contained in:
parent
e46d8e15da
commit
cdd64d7128
1 changed files with 2 additions and 0 deletions
|
@ -78,7 +78,9 @@ export const CleanCmd = utilityCmd({
|
|||
if (targetChannel.id !== msg.channel.id) {
|
||||
const configForTargetChannel = pluginData.config.getMatchingConfig({
|
||||
userId: msg.author.id,
|
||||
member: msg.member,
|
||||
channelId: targetChannel.id,
|
||||
categoryId: targetChannel.parentID,
|
||||
});
|
||||
if (configForTargetChannel.can_clean !== true) {
|
||||
sendErrorMessage(pluginData, msg.channel, `Missing permissions to use clean on that channel`);
|
||||
|
|
Loading…
Add table
Reference in a new issue