Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(discord): suppress URL auto-embeds on outbound messages (#735)

Qi Qi297ab74c0f9b
diff --git a/modules/im/discord.py b/modules/im/discord.py
index 7334f8f15..39174bf6a 100644
--- a/modules/im/discord.py
+++ b/modules/im/discord.py
@@ -463,7 +463,7 @@ class DiscordBot(BaseIMClient):
platform_specific={"is_dm": True},
)
view = _DiscordButtonView(self, context, keyboard, owner_id=str(uid))
- message = await dm_channel.send(content=text, view=view)
+ message = await dm_channel.send(content=text, view=view, suppress_embeds=True)
return str(message.id)
except Exception as e:
logger.error("Failed to send DM to Discord user %s: %s", user_id, e)
@@ -512,7 +512,10 @@ class DiscordBot(BaseIMClient):
target = await self._resolve_target(context)
if target is None:
raise RuntimeError("Discord channel not found")
- message = await target.send(content=content)
+ # suppress_embeds at creation sets the persistent SUPPRESS_EMBEDS
+ # flag, so later edit_message() content edits stay embed-free
+ # without needing edit(suppress=True) (which requires Manage Messages).
+ message = await target.send(content=content, suppress_embeds=True)
if self.settings_manager and context.thread_id:
try:
if self.sessions:
@@ -543,7 +546,7 @@ class DiscordBot(BaseIMClient):
if _PersistentStartView.is_all_static(keyboard)
else _DiscordButtonView(self, context, keyboard)
)
- message = await target.send(content=content, view=view)
+ message = await target.send(content=content, view=view, suppress_embeds=True)
if self.settings_manager and context.thread_id:
try:
if self.sessions: