v0.5.0

v0.3.4 Release Notes

Released


v0.3.3 -> v0.3.4

Summary


Restores the Discord select-menu callback path that the previous release silently broke. The component-update ACK was rejected upstream because the SDK serializes an empty content field, making the interaction look like a request to blank the message. The dropdown now answers with a deferred ACK that leaves the prompt intact and hands cleanup back to the caller.
翻譯修復上一版被靜默打掉的 Discord select 選單 callback 路徑。SDK 把 content 欄位序列化成空字串,讓 component-update ACK 被上游當成「把訊息清空」拒絕。dropdown 改回傳 deferred ACK 不動 prompt,清理工作交還給 caller。

Changes


FIX

  • Use DeferredMessageUpdate ACK in handleSelectMenu to avoid Discord 50006 (@pardnchiu) [73aa55a]

翻譯
  • discord.handleSelectMenu 的 interaction ACK 從 InteractionResponseUpdateMessage(type 7)改為 InteractionResponseDeferredMessageUpdate(type 6)
  • 原本只帶 Components: [] 但 discordgo InteractionResponseData.Content 無 omitempty,序列化會變 "content":"",Discord 回 50006「Cannot send an empty message」拒絕整個 interaction
  • caller 在 callback 後若要清掉 dropdown,呼 bot.Delete(ctx, channelID, promptID) 即可;library 不再嘗試自己清 components


Scope


  • discord/sendSelect.go — FIX



Generated by SKILL