Skip to content

Commit

Permalink
Merge pull request #151 from MiscGuild/bug_fixes
Browse files Browse the repository at this point in the history
fix: fixed interaction expiring while registration if the user is a g…
  • Loading branch information
Amxgh authored Oct 22, 2023
2 parents ad4cc1f + d6441ac commit e49949d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/func/Union.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ async def register(self, ctx, name):

# User is in an allied guild
elif guild_name in allies:
await ctx.defer()
await ctx.author.add_roles(bot.guest, bot.ally, reason="Registration - Ally")

# Add guild tag as nick
Expand All @@ -200,6 +201,7 @@ async def register(self, ctx, name):

# User is a guest
else:
await ctx.defer()
await ctx.author.add_roles(bot.processing, reason="Registration - Processing")
ticket = await create_ticket(ctx.author, f"ticket-{ign}",
category_name=ticket_categories["registrees"])
Expand Down

0 comments on commit e49949d

Please sign in to comment.