mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[V3 Mod] Fix unban and case numbering problems (#1101)
* [ModLog] fix case numbering issue * [Mod] fix unban command
This commit is contained in:
@@ -311,6 +311,7 @@ async def get_next_case_number(guild: discord.Guild) -> str:
|
||||
"""
|
||||
cases = sorted(
|
||||
(await _conf.guild(guild).get_attr("cases")),
|
||||
key=lambda x: int(x),
|
||||
reverse=True
|
||||
)
|
||||
return str(int(cases[0]) + 1) if cases else "1"
|
||||
|
||||
Reference in New Issue
Block a user