Skip to content

Commit

Permalink
fix: order react roles by display order for custom messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhuh committed Jun 27, 2023
1 parent 0d897b2 commit 112de71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commands/react/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ export class MessageSubCommand extends SlashSubCommand {
prop: 'category',
});

const roles = await GET_REACT_ROLES_BY_CATEGORY_ID(category.id);
const roles = await GET_REACT_ROLES_BY_CATEGORY_ID(
category.id,
category.displayOrder
);

if (!roles.length) {
return interaction.editReply(
Expand Down

0 comments on commit 112de71

Please sign in to comment.