Plugin links pt 2: Link::InsertText (#6527)

This commit is contained in:
Mm2PL
2025-10-25 15:30:49 +02:00
committed by GitHub
parent 86217019da
commit 6e443cd767
7 changed files with 15 additions and 2 deletions
+1
View File
@@ -255,6 +255,7 @@ declare namespace c2 {
JumpToChannel,
CopyToClipboard,
JumpToMessage,
InsertText,
}
enum MessageFlag {
+1
View File
@@ -354,6 +354,7 @@ c2.LinkType = {
JumpToChannel = {}, ---@type c2.LinkType.JumpToChannel
CopyToClipboard = {}, ---@type c2.LinkType.CopyToClipboard
JumpToMessage = {}, ---@type c2.LinkType.JumpToMessage
InsertText = {}, ---@type c2.LinkType.InsertText
}
-- Begin src/singletons/Fonts.hpp
+1
View File
@@ -621,6 +621,7 @@ This table describes links available to plugins.
| `JumpToChannel` | [Channel name](#channelget_name) | Go to already open split with given channel | `#pajlada` |
| `CopyToClipboard` | Any Unicode text | Copy value to clipboard | n/a |
| `JumpToMessage` | ID of the message | Highlight the message with given ID in current split, do nothing if it was not found | n/a |
| `InsertText` | Any text, command or emote | Insert text into split input | n/a |
### Input/Output API