test(discord): add guild to fake e2e messages

This commit is contained in:
Wysie 2026-04-26 01:20:34 +08:00 committed by Teknium
parent edce7522a5
commit 1d80e92c7e

View file

@ -346,6 +346,7 @@ def make_discord_message(
return SimpleNamespace(
id=message_id, content=content, author=author, channel=channel,
guild=getattr(channel, "guild", None),
mentions=mentions, attachments=attachments,
type=getattr(discord, "MessageType", SimpleNamespace()).default,
reference=None, created_at=datetime.now(timezone.utc),