feat(bot): ✨ Prevent banned users from suggesting.

This commit is contained in:
Nyeki.py
2024-10-20 01:55:23 -03:00
parent 167f969b1c
commit 1cf5712cb8
+2 -1
View File
@@ -5,7 +5,7 @@ from discord.ext import commands
from payphone import bot from payphone import bot
from payphone.cogs import base from payphone.cogs import base
from payphone.core import config, constants from payphone.core import config, constants, checks
class Utility(base.Cog): class Utility(base.Cog):
@@ -14,6 +14,7 @@ class Utility(base.Cog):
@commands.command() @commands.command()
@commands.cooldown(1, 60, commands.BucketType.user) @commands.cooldown(1, 60, commands.BucketType.user)
@checks.is_unbanned()
async def suggest(self, ctx: commands.Context, *, suggestion: str) -> None: async def suggest(self, ctx: commands.Context, *, suggestion: str) -> None:
""" """
Make a suggestion to improve Payphone. Make a suggestion to improve Payphone.