diff options
author | 2024-02-11 16:32:43 +0000 | |
---|---|---|
committer | 2024-05-23 21:50:16 +0100 | |
commit | 058146f9726c8bbe942f8f04426fa39a29f5d0d9 (patch) | |
tree | a78e92382a69a810bc8c9497248b9c183151a530 | |
parent | Indicate if the user has alts when seaching for their infractions (diff) |
Don't allow bots to be marked as alts
-rw-r--r-- | bot/exts/moderation/alts.py | 4 |
1 files changed, 4 insertions, 0 deletions
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", |