mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[ModLog] Optimise get_next_case_number() (#2908)
* [ModLog] Optimise get_next_case_number() Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Address reviews Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Add changelog entry Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Delete get_next_case_number Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Add modlog.get_latest_case() and fix `[p]reason` Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
committed by
Michael H
parent
9362dd9465
commit
ef8b9b81c3
1
changelog.d/2908.breaking.rst
Normal file
1
changelog.d/2908.breaking.rst
Normal file
@@ -0,0 +1 @@
|
||||
``redbot.core.modlog.get_next_case_number()`` has been removed.
|
||||
1
changelog.d/2908.bugfix.rst
Normal file
1
changelog.d/2908.bugfix.rst
Normal file
@@ -0,0 +1 @@
|
||||
Fixed error in `[p]reason` when setting the reason for a case without a moderator.
|
||||
1
changelog.d/2908.enhance.rst
Normal file
1
changelog.d/2908.enhance.rst
Normal file
@@ -0,0 +1 @@
|
||||
ModLog is now much faster at creating cases, especially in large servers.
|
||||
1
changelog.d/2908.feature.rst
Normal file
1
changelog.d/2908.feature.rst
Normal file
@@ -0,0 +1 @@
|
||||
Added :func:`redbot.core.modlog.get_latest_case` to fetch the case object for the most recent ModLog case.
|
||||
Reference in New Issue
Block a user