Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBSG committed Nov 2, 2024
2 parents 039ba25 + 78cc7a6 commit 09d2f05
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions events/extralife.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ async def perks_grant(self, interaction: discord.Interaction, members: str):
content = f'{config.greenTick} Extra Life perks granted to {len(member_list) - len(errors)}/{len(member_list)} member(s)'
if errors:
content += f'.\nFailed users: ```{" ".join(errors)}```'
return await interaction.edit_original_response(
content=content
)
return await interaction.edit_original_response(content=content)

@extralife_group.command(name='revoke', description='Manually revoke extra life perks from a list of user ids')
@app_commands.describe(members='A space separated list of member IDs to revoke extra life perks from')
Expand All @@ -132,9 +130,7 @@ async def perks_revoke(self, interaction: discord.Interaction, members: str):
content = f'{config.greenTick} Extra Life perks revoked from {len(member_list) - len(errors)}/{len(member_list)} member(s)'
if errors:
content += f'.\nFailed users: ```{" ".join(errors)}```'
return await interaction.edit_original_response(
content=content
)
return await interaction.edit_original_response(content=content)

@commands.Cog.listener()
async def on_message(self, message):
Expand Down

0 comments on commit 09d2f05

Please sign in to comment.