From 6f5cb51be291411de0a503c8f6f8a91aa9e3145d Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 15 Mar 2026 15:59:22 -0700 Subject: [PATCH] Tests: cover Discord group DM command bindings --- src/plugins/commands.test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/plugins/commands.test.ts b/src/plugins/commands.test.ts index 3685300e71e..6d4e30f6cb7 100644 --- a/src/plugins/commands.test.ts +++ b/src/plugins/commands.test.ts @@ -127,6 +127,20 @@ describe("registerPluginCommand", () => { }); }); + it("resolves Discord group DM command bindings as channel conversations", () => { + expect( + __testing.resolveBindingConversationFromCommand({ + channel: "discord", + from: "discord:group:1480554272859881494", + accountId: "default", + }), + ).toEqual({ + channel: "discord", + accountId: "default", + conversationId: "channel:1480554272859881494", + }); + }); + it("does not resolve binding conversations for unsupported command channels", () => { expect( __testing.resolveBindingConversationFromCommand({