Plugin links pt 2: Link::InsertText (#6527)
This commit is contained in:
Vendored
+1
@@ -255,6 +255,7 @@ declare namespace c2 {
|
||||
JumpToChannel,
|
||||
CopyToClipboard,
|
||||
JumpToMessage,
|
||||
InsertText,
|
||||
}
|
||||
|
||||
enum MessageFlag {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user