Skip to content

Code Jam Permissions Update and a little bit extra#88

Merged
janine9vn merged 3 commits into
mainfrom
cj-perms-update
Aug 28, 2023
Merged

Code Jam Permissions Update and a little bit extra#88
janine9vn merged 3 commits into
mainfrom
cj-perms-update

Conversation

@janine9vn
Copy link
Copy Markdown
Contributor

This corrects some permissions issues from last year:

  • Adds Sir Robin to individual team channels
  • Give the Event Lead roles manage_channels permission for the category
  • Adds Sir Lancebot and Python to team channels and the category overall, just to be sure

Why do we have to override permissions on the individual channels when it's being added to the category is a reasonable question you might ask when looking at this PR. The answer lies in the hell that is the Discord channel permission system. When creating a channel from a category, if you override the permissions during creation, it will not inherit the permissions from the category. We override the permissions on creation to add the individual team roles. So therefore we need to duplicate some efforts to make sure we cover our bases.

Also this change will ping teams in their team channels when we announce. This is a QoL change requested from last year that I went ahead and implemented since I had to edit the _views.py file anyway.

Also d.py changed the ordering of their arguments for the UI on_error function, so I had to correct that as well.

Discussed internally, ping Kat if you have questions of why those
specific roles and permissions
When teams are announced, it will also ping the team in their team
channel with the team info.

Fixes a d.py change in UI view on_error argument positions.
Copy link
Copy Markdown
Contributor

@HassanAbouelela HassanAbouelela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cant test, but LGTM.

Copy link
Copy Markdown
Contributor

@D0rs4n D0rs4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested out, LGTM

@janine9vn janine9vn merged commit 3868b98 into main Aug 28, 2023
@janine9vn janine9vn deleted the cj-perms-update branch August 28, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants