From c2146f21abb55697c25af1e7071d1cef00eb2c50 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Wed, 19 Mar 2025 19:30:27 -0300 Subject: [PATCH] feat(shard): :sparkles: Check for permissions before starting a call. --- payphone/cogs/calls/cog.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index 496dac1..0019afe 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -28,6 +28,14 @@ class Calls(base.Cog): self.bot = bot @commands.command(aliases=["c"]) + @commands.has_permissions( + send_messages=True, + read_messages=True, + read_message_history=True, + use_external_emojis=True, + manage_webhooks=True, + manage_messages=True + ) @checks.is_not_banned() async def call(self, ctx: commands.Context) -> None: """