File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,19 @@ end)
557
557
558
558
The full range of options can be found in the typing files ([ LuaLS] ( ./plugin-meta.lua ) , [ TypeScript] ( ./chatterino.d.ts ) ).
559
559
560
+ #### ` LinkType ` enum
561
+
562
+ This table describes links available to plugins.
563
+
564
+ | ` LinkType ` | ` c2.Link.value ` content | Action on click | Example |
565
+ | ----------------- | ---------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------- |
566
+ | ` Url ` | Any URI that makes sense to open | Open Link in browser | ` https://example.org ` |
567
+ | ` UserInfo ` | A Twitch username or ` id:TwitchID ` | Open a usercard | ` mm2pl ` , ` id:117691339 ` |
568
+ | ` UserAction ` | Command to run or message to send | Send command/message | ` /timeout mm2pl 1s test ` , ` !spoilers ` |
569
+ | ` JumpToChannel ` | [ Channel name] ( #channelget_name ) | Go to already open split with given channel | ` #pajlada ` |
570
+ | ` CopyToClipboard ` | Any Unicode text | Copy value to clipboard | n/a |
571
+ | ` JumpToMessage ` | ID of the message | Highlight the message with given ID in current split, do nothing if it was not found | n/a |
572
+
560
573
### Input/Output API
561
574
562
575
These functions are wrappers for Lua's I/O library. Functions on file pointer
You can’t perform that action at this time.
0 commit comments