62 |
} |
} |
63 |
|
|
64 |
permKey = <PermissionString> options.options.getString('permission'); |
permKey = <PermissionString> options.options.getString('permission'); |
65 |
|
|
66 |
|
if (FLAGS[permKey] === undefined) { |
67 |
|
await this.deferReply(msg, { |
68 |
|
content: (await fetchEmoji('error'))?.toString() + ' Invalid permission key given.', |
69 |
|
embeds: [] |
70 |
|
}, true); |
71 |
|
|
72 |
|
return; |
73 |
|
} |
74 |
|
|
75 |
const permValueInput = <string> options.options.getString('value'); |
const permValueInput = <string> options.options.getString('value'); |
76 |
|
|
77 |
if (permValueInput === 'true') |
if (permValueInput === 'true') |