Add support for plugin links (#6386)

Co-authored-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
Mm2PL
2025-10-02 20:56:51 +02:00
committed by GitHub
parent 3f05edc071
commit 33f6383122
14 changed files with 190 additions and 16 deletions
+15
View File
@@ -187,6 +187,7 @@ declare namespace c2 {
interface MessageElementInitBase {
tooltip?: string;
trailing_space?: boolean;
link?: Link;
}
type MessageColor = "text" | "link" | "system" | string;
@@ -242,6 +243,20 @@ declare namespace c2 {
type: "reply-curve";
}
interface Link {
type: LinkType;
value: string;
}
enum LinkType {
Url,
UserInfo,
UserAction,
JumpToChannel,
CopyToClipboard,
JumpToMessage,
}
enum MessageFlag {
None = 0,
System = 0,