Add support for plugin links (#6386)
Co-authored-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
Vendored
+15
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user