fix(suggestions): fixed missing ) in finish_suggestion

This commit is contained in:
Seaswimmer 2023-09-21 09:49:57 -04:00
parent fa0ecaf30a
commit 17227880b3
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

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