From 058146f9726c8bbe942f8f04426fa39a29f5d0d9 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 11 Feb 2024 16:32:43 +0000 Subject: Don't allow bots to be marked as alts --- bot/exts/moderation/alts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot/exts/moderation/alts.py b/bot/exts/moderation/alts.py index b383fecb4..64e0310fe 100644 --- a/bot/exts/moderation/alts.py +++ b/bot/exts/moderation/alts.py @@ -72,6 +72,10 @@ class AlternateAccounts(commands.Cog): When called directly marks the two users given as alt accounts. The context as to why they are believed to be alt accounts must be given. """ + if user_1.bot or user_2.bot: + await ctx.send(":x: Cannot mark bots as alts") + return + try: await self.bot.api_client.post( f"bot/users/{user_1.id}/alts", -- cgit v1.2.3