feat(shard): ✨ Add command aliases for p.bans and p.reports and add permission checking to commands before execution.
This commit is contained in:
@@ -141,6 +141,10 @@ class Calls(base.Cog):
|
||||
)
|
||||
|
||||
@commands.command(aliases=["m"])
|
||||
@commands.has_permissions(
|
||||
send_messages=True,
|
||||
use_external_emojis=True,
|
||||
)
|
||||
@checks.is_not_banned()
|
||||
async def mask(self, ctx: commands.Context, toggle: bool | None = None) -> None:
|
||||
"""
|
||||
@@ -178,6 +182,9 @@ class Calls(base.Cog):
|
||||
return await ctx.send(message)
|
||||
|
||||
@commands.command(aliases=["r"])
|
||||
@commands.has_permissions(
|
||||
send_messages=True,
|
||||
)
|
||||
@checks.is_not_banned()
|
||||
async def report(self, ctx: commands.Context) -> None:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user