Skip to content

Commit

Permalink
Merge pull request #154 from MiscGuild/bug-fixes
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
Amxgh authored Oct 29, 2023
2 parents 6112a69 + 049186f commit 9b75290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/cogs/tickets.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ async def register(self, ctx, name: str):
if isinstance(res, discord.Embed):
await ctx.respond(embed=res)
if guest_ticket:
print(guest_ticket)
await ctx.followup.send(f"Head on over to <#{guest_ticket.id}>!", ephemeral=True)
if isinstance(res, String):
await ctx.respond(res)
Expand Down
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 9b75290

Please sign in to comment.