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],