Add a proper Channels API #4605
Labels
discussion
enhancement
Feature: EXPERIMENTAL Plugins
Stuff related to EXPERIMENTAL Lua plugin support
Milestone
Checklist
Describe your issue
Currently the channels Lua API looks like this:
This has some issues:
/watching
? I don't know exactly as I don't use Windows and can't test with /watching.I'd like something more like
getOrAddChannel
method ofTwitchIrcServer
. However such a system has a big problem: should Lua holding references still hold the channel open? If yes, the C++ part will probably be quite complex with massagingstd::shared_ptr
s to work with Lua's GC. Otherwise Lua scripts will be very complex with checking if the channel still exists.Screenshots
No response
OS and Chatterino Version
Chatterino 2.4.3 DEBUG (commit bcd8028) built with Qt 5.15.9
The text was updated successfully, but these errors were encountered: