3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-19 16:05:01 +00:00

utility: fix !clean permission check

This commit is contained in:
Dragory 2020-07-30 22:51:48 +03:00
parent b696bf92fb
commit 8862d5e9e4

View file

@ -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`);