feat(bot): ✨ Prevent banned users from suggesting.
This commit is contained in:
@@ -5,7 +5,7 @@ from discord.ext import commands
|
||||
|
||||
from payphone import bot
|
||||
from payphone.cogs import base
|
||||
from payphone.core import config, constants
|
||||
from payphone.core import config, constants, checks
|
||||
|
||||
|
||||
class Utility(base.Cog):
|
||||
@@ -14,6 +14,7 @@ class Utility(base.Cog):
|
||||
|
||||
@commands.command()
|
||||
@commands.cooldown(1, 60, commands.BucketType.user)
|
||||
@checks.is_unbanned()
|
||||
async def suggest(self, ctx: commands.Context, *, suggestion: str) -> None:
|
||||
"""
|
||||
Make a suggestion to improve Payphone.
|
||||
|
||||
Reference in New Issue
Block a user