aboutsummaryrefslogtreecommitdiff
path: root/src/arguments/permission.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/arguments/permission.ts')
-rw-r--r--src/arguments/permission.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arguments/permission.ts b/src/arguments/permission.ts
index dc90f3a..8ad0102 100644
--- a/src/arguments/permission.ts
+++ b/src/arguments/permission.ts
@@ -4,7 +4,7 @@ import { BushArgumentTypeCaster } from '../lib/extensions/discord-akairo/BushArg
export const permissionTypeCaster: BushArgumentTypeCaster = (_, phrase) => {
if (!phrase) return null;
phrase = phrase.toUpperCase().replace(/ /g, '_');
- if (!Permissions.FLAGS[phrase]) {
+ if (!Permissions.FLAGS[phrase as keyof typeof Permissions.FLAGS]) {
return null;
} else {
return phrase;