Skip to content

Commit f60fa4a

Browse files
committed
chore: Add myperms rename for RANK_ORDER
1 parent 6b8b8e7 commit f60fa4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ps/commands/myperms.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { rankOrder } from '@/ps/handlers/commands/permissions';
1+
import { RANK_ORDER } from '@/ps/constants';
22

33
import type { PSCommand } from '@/types/chat';
44

@@ -9,7 +9,7 @@ export const command: PSCommand = {
99
aliases: ['me'],
1010
category: ['utility'],
1111
async run({ message, broadcast, checkPermissions, $T }) {
12-
const highestRank = rankOrder.findLast(rank => checkPermissions(rank));
12+
const highestRank = RANK_ORDER.findLast(rank => checkPermissions(rank));
1313
if (!highestRank) throw new Error(`You are the lowest of the low. This shouldn't have happened for you, ${message.author.name}.`);
1414
broadcast($T('COMMANDS.RANK', { rank: highestRank }));
1515
},

0 commit comments

Comments
 (0)