From 0d9a1009ffc342088d9b238da0a7ce3ae661c5ac Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Sun, 11 Jan 2026 22:28:05 +0530 Subject: [PATCH 1/2] fix: format discord parentId --- src/providers/plugins/actions/discord.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/providers/plugins/actions/discord.ts b/src/providers/plugins/actions/discord.ts index 7e4604a1b..0960352cf 100644 --- a/src/providers/plugins/actions/discord.ts +++ b/src/providers/plugins/actions/discord.ts @@ -463,9 +463,7 @@ export const discordMessageActions: ProviderMessageActionAdapter = { const name = readStringParam(params, "name", { required: true }); const type = readNumberParam(params, "type", { integer: true }); const parentId = - params.parentId === null - ? null - : readStringParam(params, "parentId"); + params.parentId === null ? null : readStringParam(params, "parentId"); const topic = readStringParam(params, "topic"); const position = readNumberParam(params, "position", { integer: true }); const nsfw = typeof params.nsfw === "boolean" ? params.nsfw : undefined; @@ -492,9 +490,7 @@ export const discordMessageActions: ProviderMessageActionAdapter = { const topic = readStringParam(params, "topic"); const position = readNumberParam(params, "position", { integer: true }); const parentId = - params.parentId === null - ? null - : readStringParam(params, "parentId"); + params.parentId === null ? null : readStringParam(params, "parentId"); const nsfw = typeof params.nsfw === "boolean" ? params.nsfw : undefined; const rateLimitPerUser = readNumberParam(params, "rateLimitPerUser", { integer: true, @@ -530,9 +526,7 @@ export const discordMessageActions: ProviderMessageActionAdapter = { required: true, }); const parentId = - params.parentId === null - ? null - : readStringParam(params, "parentId"); + params.parentId === null ? null : readStringParam(params, "parentId"); const position = readNumberParam(params, "position", { integer: true }); return await handleDiscordAction( { From f082f1e06eef0566d274bcaf4da9a0873472e9ed Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Sun, 11 Jan 2026 22:32:17 +0530 Subject: [PATCH 2/2] fix: add discord channel actions --- src/providers/plugins/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/providers/plugins/types.ts b/src/providers/plugins/types.ts index f6fd550c9..d339c0e7e 100644 --- a/src/providers/plugins/types.ts +++ b/src/providers/plugins/types.ts @@ -504,6 +504,13 @@ export type ProviderMessageActionName = | "role-remove" | "channel-info" | "channel-list" + | "channel-create" + | "channel-edit" + | "channel-delete" + | "channel-move" + | "category-create" + | "category-edit" + | "category-delete" | "voice-status" | "event-list" | "event-create"