From 17227880b32801b2b6105db5934b48a5381c5176 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 21 Sep 2023 09:49:57 -0400 Subject: [PATCH] fix(suggestions): fixed missing ) in finish_suggestion --- suggestions/suggestions.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/suggestions/suggestions.py b/suggestions/suggestions.py index b3e17ff..8b61ce6 100644 --- a/suggestions/suggestions.py +++ b/suggestions/suggestions.py @@ -66,11 +66,13 @@ class Suggestions(commands.Cog): context = super().format_help_for_context(ctx) return f"{context}" - @commands.command() + @commands.hybrid_command() @commands.guild_only() @checks.bot_has_permissions(add_reactions=True) - async def suggest(self, ctx: commands.Context, *, suggestion: str): + async def suggest_cmd(self, ctx: commands.Context, *, suggestion: str): """Suggest something.""" + if ctx.interaction is True: + await ctx.defer() suggest_id = await self.config.guild(ctx.guild).suggest_id() if not suggest_id: if not await self.config.toggle(): @@ -463,7 +465,7 @@ class Suggestions(commands.Cog): approved = "Approved" if approve else "Denied" embed.title = f"Suggestion {approved} (#{suggestion_id})" - footer = [f"{approved} by {self.check_discrim(author)} • ({author.id}", + footer = [f"{approved} by {self.check_discrim(author)} • ({author.id})", author.display_avatar.replace(format="png", size=512)] embed.set_footer( text=footer[0],