mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[V3 Mod/Modlog] prevent self-casing the bot + feedback for heirarchy (#1777)
* prevent the bot from being a modlog target * prevent heirarchy issues in mod * modify this comparison to avoid more complex mocking of the guild object in mod test * spelling
This commit is contained in:
@@ -461,6 +461,9 @@ async def create_case(
|
||||
if not await case_type.is_enabled():
|
||||
return None
|
||||
|
||||
if user == bot.user:
|
||||
return None
|
||||
|
||||
next_case_number = int(await get_next_case_number(guild))
|
||||
|
||||
case = Case(
|
||||
|
||||
Reference in New Issue
Block a user