Skip to content

Commit fabc7a8

Browse files
Update committee role syntax
1 parent 54cab7d commit fabc7a8

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

cogs/add_users_to_threads_and_channels.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,7 @@ async def on_thread_create(self, thread: discord.Thread) -> None:
160160

161161
if "committee" in thread.parent.category.name.lower():
162162
await self.add_users_or_roles_silently(
163-
users_or_roles=committee_role, thread=thread
164-
)
165-
await self.add_users_or_roles_silently(
166-
users_or_roles=committee_elect_role,
167-
thread=thread,
163+
users_or_roles=[committee_role, committee_elect_role], thread=thread
168164
)
169165

170166
@discord.slash_command( # type: ignore[no-untyped-call, misc]

0 commit comments

Comments
 (0)