Skip to content

feat: add Discord pre-ack emoji support#5609

Merged
Soulter merged 3 commits intomasterfrom
copilot/add-discord-predefined-responses
Mar 2, 2026
Merged

feat: add Discord pre-ack emoji support#5609
Soulter merged 3 commits intomasterfrom
copilot/add-discord-predefined-responses

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

Discord users had no visual feedback that the bot was processing their message. Feishu/Lark and Telegram already supported pre-acknowledgment emoji reactions; Discord was missing from the list despite its event class already implementing react().

Changes

  • preprocess_stage/stage.py: Added "discord" to the supported platforms set — the only gate preventing Discord from using the existing pre-ack flow.
  • astrbot/core/config/default.py: Added two settings UI entries under platform_specific.discord.pre_ack_emoji:
    • enable — bool toggle
    • emojis — list of Unicode emoji strings (e.g. 👍, 🤔, ), conditionally shown when enabled

DiscordPlatformEvent.react() was already wired to discord.Message.add_reaction(), so no changes to the event class were needed.

image image
Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature]希望在设置中添加discord的预回应</issue_title>
<issue_description>### Description / 描述

希望在设置中添加discord的预回应,比如[正在思考]之类的,之前在openclaw上试过,对聊天体验有较大帮助
感谢!

Use Case / 使用场景

discord的im bot私聊\群聊

Willing to Submit PR? / 是否愿意提交PR?

  • Yes, I am willing to submit a PR. / 是的,我愿意提交 PR。

Code of Conduct

  • I have read and agree to abide by the project's Code of Conduct. /
    </issue_description>

<agent_instructions>类似 “[飞书] 启用预回应表情”,增加 [Discord] 启用预回应表情</agent_instructions>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Copilot AI changed the title [WIP] Add predefined responses for Discord in settings feat: add Discord pre-ack emoji support Mar 1, 2026
@Soulter Soulter marked this pull request as ready for review March 2, 2026 06:37
@auto-assign auto-assign bot requested review from Fridemn and Raven95676 March 2, 2026 06:37
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 2, 2026
@Soulter Soulter merged commit 0dbe32e into master Mar 2, 2026
5 checks passed
@Soulter Soulter deleted the copilot/add-discord-predefined-responses branch March 2, 2026 06:38
@dosubot dosubot bot added the area:platform The bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on. label Mar 2, 2026
@dosubot
Copy link

dosubot bot commented Mar 2, 2026

Related Documentation

Checked 1 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

astrbot-doc-agent bot pushed a commit to AstrBotDevs/AstrBot-docs that referenced this pull request Mar 2, 2026
@astrbot-doc-agent
Copy link

Generated docs update PR (pending manual review):
AstrBotDevs/AstrBot-docs#158
Trigger: PR merged


AI change summary:

  • 更新 zh/platform/discord.md:新增「预回应表情」章节,说明如何在管理面板配置该功能(支持自定义 Unicode 表情)。
  • 更新 en/platform/discord.md:同步新增「Pre-acknowledgment Emoji」章节。
  • i18n:中英文文档均已同步更新。

Experimental bot notice:

  • This output is generated by AstrBot-Doc-Agent for review only.
  • It does not represent the final documentation form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform The bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]希望在设置中添加discord的预回应

2 participants