mirror of
https://github.com/sern-handler/awesome-plugins
synced 2026-06-26 17:52:17 +00:00
chore: Update JavaScript plugins (#59)
chore: update JavaScript plugins Co-authored-by: jacoobes <jacoobes@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7bf80d114d
commit
bfb30f0725
@@ -22,7 +22,7 @@ import {
|
||||
CommandType,
|
||||
Controller,
|
||||
EventPlugin,
|
||||
PluginType
|
||||
PluginType,
|
||||
} from "@sern/handler";
|
||||
|
||||
function payload(resp?: string) {
|
||||
@@ -51,7 +51,7 @@ export function requirePermission<T extends CommandType>(
|
||||
if (
|
||||
!(
|
||||
(await ctx.guild.members.fetchMe({
|
||||
cache: false
|
||||
cache: false,
|
||||
})!) as GuildMember
|
||||
).permissions.has(perm)
|
||||
) {
|
||||
@@ -76,6 +76,6 @@ export function requirePermission<T extends CommandType>(
|
||||
ctx.reply(payload("User or Bot was not specified."));
|
||||
return controller.stop();
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user