fix (rroles): Correct reaction ordering.

This commit is contained in:
2022-01-23 00:12:26 +02:00
parent dbb79a662a
commit e964e12fa7

View File

@@ -174,7 +174,7 @@ class ReactionRoleMessage:
Returns the generated `ReactionRoleReaction`s for convenience. Returns the generated `ReactionRoleReaction`s for convenience.
""" """
# Fetch reactions and pre-populate reaction cache # Fetch reactions and pre-populate reaction cache
rows = reaction_role_reactions.fetch_rows_where(messageid=self.messageid) rows = reaction_role_reactions.fetch_rows_where(messageid=self.messageid, _extra="ORDER BY reactionid ASC")
reactions = [ReactionRoleReaction(row.reactionid) for row in rows] reactions = [ReactionRoleReaction(row.reactionid) for row in rows]
self._reactions[self.messageid] = reactions self._reactions[self.messageid] = reactions
return reactions return reactions