Skip to content

Commit b88cc37

Browse files
committed
fix: rename hacker_role to role
1 parent 28af3e4 commit b88cc37

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/discord-bot/cogs/general.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,16 @@ async def grant_vc_access(self, interaction: discord.Interaction, user: discord.
290290
)
291291
@app_commands.describe(
292292
event_id="UUID of event",
293-
hacker_role="Discord role to assign to hackers"
293+
role="Discord role to assign to attendees"
294294
)
295295
@is_mod_slash()
296-
async def assign_hacker_roles(self, interaction: discord.Interaction, event_id: str, hacker_role: discord.Role) -> None:
297-
"""Assign hacker role to all attendees from API using webhook
296+
async def assign_hacker_roles(self, interaction: discord.Interaction, event_id: str, role: discord.Role) -> None:
297+
"""Assign role to all attendees from API using webhook
298298
299299
Args:
300300
interaction: The interaction that triggered this command
301301
event_id: UUID of event
302-
hacker_role: Discord role to assign to hackers
302+
role: Discord role to assign to attendees
303303
"""
304304

305305
await interaction.response.defer(ephemeral=True)
@@ -326,7 +326,7 @@ async def assign_hacker_roles(self, interaction: discord.Interaction, event_id:
326326
await interaction.followup.send("Error: No attendees found for event.", ephemeral=True)
327327
return
328328

329-
newly_assigned, already_had, failed, errors = await assign_roles_to_attendees(webhook_url, attendees, hacker_role.name, str(guild_id))
329+
newly_assigned, already_had, failed, errors = await assign_roles_to_attendees(webhook_url, attendees, role.name, str(guild_id))
330330
summary = format_assignment_summary(len(attendees), newly_assigned, already_had, failed, errors)
331331
await interaction.followup.send(summary, ephemeral=True)
332332

0 commit comments

Comments
 (0)