mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 01:21:43 +00:00
test(discord): add guild to fake e2e messages
This commit is contained in:
parent
edce7522a5
commit
1d80e92c7e
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue