From 9976cc1905ad3688d673f0ec8f00f3e2d52359d2 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 27 Sep 2023 13:54:14 -0400 Subject: [PATCH] feat(shortmute): disallowed shortmuting bots --- shortmute/shortmute.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shortmute/shortmute.py b/shortmute/shortmute.py index 449216c..dbcb790 100644 --- a/shortmute/shortmute.py +++ b/shortmute/shortmute.py @@ -64,6 +64,9 @@ class Shortmute(commands.Cog): if user_id == interaction.user.id: await interaction.response.send_message(content="You are blacklisted from `/shortmute`!", ephemeral=True) return + if target.bot is True: + await interaction.response.send_message(content="You cannot shortmute bots!", ephemeral=True) + return if interaction.user.guild_permissions.administrator is False: immune_roles_list = await self.config.guild(interaction.guild).immune_roles() for role_id in immune_roles_list: