-
Hi! I am working on some functionalities with the reminders tokens (like allowing a player to vote twice if the ST marked them with the Banshee's reminder). From only this ID, is there a way to find all info about this role? Thanks for answer |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Well, with the ID you would have to load the role from the list of all available roles in the main store here: https://github.com/bra1n/townsquare/blob/develop/src/store/index.js#L123 |
Beta Was this translation helpful? Give feedback.
state.roles
would be correct, and since it's a map, all you have to do isstate.roles.get(<role ID>)
to get the (homebrew) role object.