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:
parent
b696bf92fb
commit
8862d5e9e4
1 changed files with 2 additions and 0 deletions
|
@ -78,7 +78,9 @@ export const CleanCmd = utilityCmd({
|
||||||
if (targetChannel.id !== msg.channel.id) {
|
if (targetChannel.id !== msg.channel.id) {
|
||||||
const configForTargetChannel = pluginData.config.getMatchingConfig({
|
const configForTargetChannel = pluginData.config.getMatchingConfig({
|
||||||
userId: msg.author.id,
|
userId: msg.author.id,
|
||||||
|
member: msg.member,
|
||||||
channelId: targetChannel.id,
|
channelId: targetChannel.id,
|
||||||
|
categoryId: targetChannel.parentID,
|
||||||
});
|
});
|
||||||
if (configForTargetChannel.can_clean !== true) {
|
if (configForTargetChannel.can_clean !== true) {
|
||||||
sendErrorMessage(pluginData, msg.channel, `Missing permissions to use clean on that channel`);
|
sendErrorMessage(pluginData, msg.channel, `Missing permissions to use clean on that channel`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue