I’ve just started to look into developing a video channel and I’m already slightly confused.
According to the documentation, I should use the global handler function to register a Prefix for my channel, but looking at pretty much every plugin, they all seem to use Plugin.AddPrefixHandler.
Is there a difference between the two?
Also, according to the API docs, Plugin doesn’t even have such a method. Is there a more complete API I can refer to?
Thanks in advance for any help.
Plugin.AddPrefixHandler is the old way of doing things. The @handler decorator does the same thing, but attaches the prefix declaration to the function that’ll be called (the idea being that it’s more obvious & makes the code more readable). New plug-ins should use the new method, but the old one still works for compatibility purposes.
That makes sense, thanks for the response.