Plugin

interface Plugin

Interface for a Lavalink plugin.

Properties

Link copied to clipboard

Event types handled by decodeToEvent.

Link copied to clipboard
abstract val name: String

The name of the plugin listed in RestPlugin.name

Link copied to clipboard
open val opCodes: List<String>

Op codes of events supported by decodeToEvent.

Link copied to clipboard
abstract val version: String

The version of the plugin listed in RestPlugin.version

Functions

Link copied to clipboard
open fun JsonElement.decodeToEvent(): Event

Converts a JsonElement to an event specific plugin.