fix(suggestions): fixed suggestions command having the wrong name
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Seaswimmer 2023-09-21 11:19:04 -04:00
parent 3eea481044
commit ae96e7d08d
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -65,10 +65,10 @@ 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.command(name='suggest')
@commands.guild_only() @commands.guild_only()
@checks.bot_has_permissions(add_reactions=True) @checks.bot_has_permissions(add_reactions=True)
async def suggest_cmd(self, ctx: commands.Context, *, suggestion: str): async def suggest(self, ctx: commands.Context, *, suggestion: str):
"""Suggest something.""" """Suggest something."""
if ctx.interaction is True: if ctx.interaction is True:
await ctx.defer() await ctx.defer()