For more help you can see the HexChat [plugin interface documentation](https://github.com/hexchat/hexchat/blob/master/share/doc/plugins.md). WARNING: The dbus interface may change in the future.
You can use the "/org/hexchat/Remote" object with interface "org.hexchat.plugin", but his context can be changed by other clients at any moment and you may receive signal asked by other clients. So for more complex usage it's better to get your own remote object. Using "Connect" method on interface "org.hexchat.connection"
## Available methods on _org.hexchat.connection_ interface:
* "Connect"
* Parameters:
* gchar\*: filename
* gchar\*: name
* gchar\*: description
* gchar\*: version
* Returns:
* gchar\*: Your own object's path.
* "Disconnect"
* No parameter, no return value. It frees your remote object.
## Available methods on _org.hexchat.plugin_ interface:
* "Command"
* Parameters:
* gchar\*: the command name without the "/". (e.g. "nick pseudo")
* "Print"
* Parameters:
* gchar\*: text to print on the HexChat window.
* "FindContext"
* Parameters:
* gchar\*: the server name. Can be NULL.
* gchar\*: the channel name. Can be NULL.
* Returns:
* guint: context ID.
* "GetContext"
* Returns:
* guint: current context's ID.
* "SetContext"
* Parameters:
* guint: context ID to switch, returned by "FindContext" or "GetContext"
* Returns:
* gboolean:
* 1: Success.
* 0: Failure.
* "GetInfo"
* Parameters:
* gchar\*: ID of the information you want.
* Returns:
* gchar\*: information you requested.
* "GetPrefs"
* Parameters:
* gchar\*: Setting name required.
* Returns:
* int:
* 0: Failed.
* 1: Returned a string.
* 2: Returned an integer.
* 3: Returned a boolean.
* gchar\*: the information requested if it's a string.
* int: the information requested if it's a integer or boolean.
* "HookCommand"
* Parameters:
* gchar\*: Name of the command (without the forward slash).
* int: Priority of this command.
* gchar\*: String of text to display when the user executes /help for this command. May be NULL if you're lazy.