chore: Update JavaScript plugins (#59)

chore: update JavaScript plugins

Co-authored-by: jacoobes <jacoobes@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2022-12-05 18:27:22 +05:30
committed by GitHub
parent 7bf80d114d
commit bfb30f0725
2 changed files with 84 additions and 3 deletions

View File

@@ -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();
}
}
},
};
}