We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2cc3cd commit 2904b4cCopy full SHA for 2904b4c
1 file changed
src/ps/commands/commands.tsx
@@ -1,4 +1,3 @@
1
-
2
import { PSCommands } from '@/cache';
3
import { prefix } from '@/config/ps';
4
import { permissions } from '@/ps/handlers/commands/permissions';
@@ -33,8 +32,7 @@ export const command: PSCommand = {
33
32
if (permissions(command.perms, [command.name], spoofedMessage)) return true;
34
return false;
35
} catch (err: unknown) {
36
- if (err instanceof Error)
37
- if (!(err instanceof ChatError)) Logger.errorLog(err);
+ if (err instanceof Error) if (!(err instanceof ChatError)) Logger.errorLog(err);
38
39
return false; // No need to show error responses from permissions validation
40
}
0 commit comments