fix(suggestions): fixed missing ) in finish_suggestion
This commit is contained in:
parent
fa0ecaf30a
commit
17227880b3
1 changed files with 5 additions and 3 deletions
|
@ -66,11 +66,13 @@ class Suggestions(commands.Cog):
|
||||||
context = super().format_help_for_context(ctx)
|
context = super().format_help_for_context(ctx)
|
||||||
return f"{context}"
|
return f"{context}"
|
||||||
|
|
||||||
@commands.command()
|
@commands.hybrid_command()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@checks.bot_has_permissions(add_reactions=True)
|
@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."""
|
"""Suggest something."""
|
||||||
|
if ctx.interaction is True:
|
||||||
|
await ctx.defer()
|
||||||
suggest_id = await self.config.guild(ctx.guild).suggest_id()
|
suggest_id = await self.config.guild(ctx.guild).suggest_id()
|
||||||
if not suggest_id:
|
if not suggest_id:
|
||||||
if not await self.config.toggle():
|
if not await self.config.toggle():
|
||||||
|
@ -463,7 +465,7 @@ class Suggestions(commands.Cog):
|
||||||
approved = "Approved" if approve else "Denied"
|
approved = "Approved" if approve else "Denied"
|
||||||
|
|
||||||
embed.title = f"Suggestion {approved} (#{suggestion_id})"
|
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)]
|
author.display_avatar.replace(format="png", size=512)]
|
||||||
embed.set_footer(
|
embed.set_footer(
|
||||||
text=footer[0],
|
text=footer[0],
|
||||||
|
|
Loading…
Reference in a new issue