mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[ModLog API] Add default casetypes, remove need for a specific auditlog action (#2901)
* I know this needs a changelog entry and docs still * update tests for new behavior * update docs, filter; add changelog * Ready for review * stop fetching the same Audit logs when the bot is the mod * I forgot to press save * fix a comprehension * Fix AttributeError * And the other place that happens * timing fixes
This commit is contained in:
@@ -5,13 +5,7 @@ from redbot.pytest.mod import *
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_modlog_register_casetype(mod):
|
||||
ct = {
|
||||
"name": "ban",
|
||||
"default_setting": True,
|
||||
"image": ":hammer:",
|
||||
"case_str": "Ban",
|
||||
"audit_type": "ban",
|
||||
}
|
||||
ct = {"name": "ban", "default_setting": True, "image": ":hammer:", "case_str": "Ban"}
|
||||
casetype = await mod.register_casetype(**ct)
|
||||
assert casetype is not None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user