Improve development experience - #199
Conversation
…d get_channel and get_forum_channel - Fixed c-help-redirect stuff - add option to get_channel and get_forum_channel to optionally also check for channel type
jeremy-rifkin
left a comment
There was a problem hiding this comment.
Hi, thanks for taking the time to contribute to the bot! Some initial comments below
4db3117 to
21d5eee
Compare
| .set_alias_of("rolepersist add") | ||
| .set_permissions(Discord.PermissionFlagsBits.ModerateMembers) | ||
| .set_description(`${capitalize(role).replace("_", " ")}`) | ||
| .set_description(`${capitalize(role as string).replace("_", " ")}`) |
There was a problem hiding this comment.
Because of keyof Wheatley["roles"] above being string | number - i didn't really wanna mess with it - if you have a better approach please let me know.
There was a problem hiding this comment.
I'm confused how keyof Wheatley["roles"] is string | number, and how that changed in this PR 🤔
jeremy-rifkin
left a comment
There was a problem hiding this comment.
Thanks so much again for taking this on and helping us make the development experience better! Some comments below, I think this is very close to being good to go
…ments # Conflicts: # src/modules/tccpp/components/permissions-manager.ts
jeremy-rifkin
left a comment
There was a problem hiding this comment.
LGTM, thanks for taking the time to help us make the dev experience better and thanks for all your patience!
|
This is part 2 of the work started in #199. The previous work helped move us in the right direction with our reliance on hard-coded ids, this PR updates all components to fetch the channels they use and only refer to channels via a map they hold.



This PR improves the development experience by checking for channel and role names while not being in production mode and resolves them with given channel name.