test(discord): add guild to fake e2e messages
This commit is contained in:
parent
edce7522a5
commit
1d80e92c7e
@ -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),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user