Skip to content

Commit

Permalink
fix: fixed return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxgh committed Oct 29, 2023
1 parent e2136e0 commit 049186f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/func/Union.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def sync(self, ctx, name: str, tag: str = None, is_fs=False):
async def register(self, ctx, name):
# Make sure it is only used in registration channel
if ctx.channel.id != registration_channel_id:
return "This command can only be used in the registration channel!"
return "This command can only be used in the registration channel!", None

ign, uuid = await get_mojang_profile(name)

Expand Down Expand Up @@ -264,7 +264,7 @@ async def callback(self, interaction: discord.Interaction):
await ctx.author.remove_roles(bot.new_member_role, reason="Register")
await ctx.author.edit(nick=ign)

return (embed, guest_ticket) if guild_name != guild_handle else (None, None)
return embed, guest_ticket if guild_name != guild_handle else None, None

async def add(self, ctx):
if ctx.channel.category.name not in ticket_categories.values():
Expand Down

0 comments on commit 049186f

Please sign in to comment.