mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
[V3 Core] Embed toggling support (#1467)
* [V3 CogManagerUI] implement text-only support in [p]cogs * Change page length to 1800 + workaround for pages starting with delim * [V3 Core] text mode support for [p]contact and [p]dm * Implement text-only support in modlog and fix everything that broke because of it * Fix modlog stuff in filter too * Fix tests * Implement optional embed support in [p]help * move to .format
This commit is contained in:
@@ -31,12 +31,13 @@ async def test_modlog_case_create(mod, ctx, member_factory):
|
||||
from datetime import datetime as dt
|
||||
usr = member_factory.get()
|
||||
guild = ctx.guild
|
||||
bot = ctx.bot
|
||||
case_type = "ban"
|
||||
moderator = ctx.author
|
||||
reason = "Test 12345"
|
||||
created_at = dt.utcnow()
|
||||
case = await mod.create_case(
|
||||
guild, created_at, case_type, usr, moderator, reason
|
||||
bot, guild, created_at, case_type, usr, moderator, reason
|
||||
)
|
||||
assert case is not None
|
||||
assert case.user == usr
|
||||
|
||||
Reference in New Issue
Block a user