feat: add new channel capabilities for editing, unsending, replying, effects, and group management

This commit is contained in:
Tyler Yust
2026-01-19 20:44:09 -08:00
committed by Peter Steinberger
parent 1eab8fa9b0
commit 61907ddf3e
2 changed files with 10 additions and 0 deletions

View File

@@ -144,6 +144,11 @@ export type ChannelCapabilities = {
chatTypes: Array<NormalizedChatType | "thread">;
polls?: boolean;
reactions?: boolean;
edit?: boolean;
unsend?: boolean;
reply?: boolean;
effects?: boolean;
groupManagement?: boolean;
threads?: boolean;
media?: boolean;
nativeCommands?: boolean;

View File

@@ -79,6 +79,11 @@ function formatSupport(capabilities?: ChannelCapabilities) {
}
if (capabilities.polls) bits.push("polls");
if (capabilities.reactions) bits.push("reactions");
if (capabilities.edit) bits.push("edit");
if (capabilities.unsend) bits.push("unsend");
if (capabilities.reply) bits.push("reply");
if (capabilities.effects) bits.push("effects");
if (capabilities.groupManagement) bits.push("groupManagement");
if (capabilities.threads) bits.push("threads");
if (capabilities.media) bits.push("media");
if (capabilities.nativeCommands) bits.push("nativeCommands");