From e2136e07d5874c21e6ecdb33b0b577f772468f50 Mon Sep 17 00:00:00 2001 From: Amogh Date: Sat, 28 Oct 2023 20:36:34 -0500 Subject: [PATCH 1/2] fix: removed print statement --- src/cogs/tickets.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cogs/tickets.py b/src/cogs/tickets.py index 1a0102b0..7db61483 100644 --- a/src/cogs/tickets.py +++ b/src/cogs/tickets.py @@ -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) From 049186ff140f4550305f7f330367c9db84849eb0 Mon Sep 17 00:00:00 2001 From: Amogh Date: Sat, 28 Oct 2023 20:36:47 -0500 Subject: [PATCH 2/2] fix: fixed return statements --- src/func/Union.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/func/Union.py b/src/func/Union.py index d9b21e75..786791cb 100644 --- a/src/func/Union.py +++ b/src/func/Union.py @@ -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) @@ -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():