Skip to content

Commit d7cba7b

Browse files
authored
Fix minor permission issues (#264)
* Hide registration section for beginners' day attendees * Deny 'add_reactions' for information section
1 parent efea1aa commit d7cba7b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

scripts/configure-guild.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,13 @@ def verify_permission_roles(self) -> Self:
235235
ROLES_VOLUNTEERS = [ROLE_VOLUNTEERS, *ROLES_ORGANIZERS]
236236
ROLES_SPEAKERS = [ROLE_SPEAKERS, *ROLES_ORGANIZERS]
237237
ROLES_SPONSORS = [ROLE_SPONSORS, *ROLES_ORGANIZERS]
238-
ROLES_REGISTERED = [ROLE_PARTICIPANTS, ROLE_SPONSORS, ROLE_SPEAKERS, *ROLES_VOLUNTEERS]
238+
ROLES_REGISTERED = [
239+
ROLE_PARTICIPANTS,
240+
ROLE_SPONSORS,
241+
ROLE_SPEAKERS,
242+
*ROLES_VOLUNTEERS,
243+
ROLE_BEGINNERS_DAY,
244+
]
239245

240246
SERVER_CONFIG = GuildConfig(
241247
roles=[
@@ -434,7 +440,8 @@ def verify_permission_roles(self) -> Self:
434440
],
435441
permission_overwrites=[
436442
PermissionOverwrite(
437-
roles=[ROLE_EVERYONE], deny=["send_messages", "create_public_threads"]
443+
roles=[ROLE_EVERYONE],
444+
deny=["send_messages", "create_public_threads", "add_reactions"],
438445
)
439446
],
440447
),

0 commit comments

Comments
 (0)