We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b8b8e7 commit f60fa4aCopy full SHA for f60fa4a
src/ps/commands/myperms.ts
@@ -1,4 +1,4 @@
1
-import { rankOrder } from '@/ps/handlers/commands/permissions';
+import { RANK_ORDER } from '@/ps/constants';
2
3
import type { PSCommand } from '@/types/chat';
4
@@ -9,7 +9,7 @@ export const command: PSCommand = {
9
aliases: ['me'],
10
category: ['utility'],
11
async run({ message, broadcast, checkPermissions, $T }) {
12
- const highestRank = rankOrder.findLast(rank => checkPermissions(rank));
+ const highestRank = RANK_ORDER.findLast(rank => checkPermissions(rank));
13
if (!highestRank) throw new Error(`You are the lowest of the low. This shouldn't have happened for you, ${message.author.name}.`);
14
broadcast($T('COMMANDS.RANK', { rank: highestRank }));
15
},
0 commit comments