Skip to content

🎵 LavaPlayer

Success

This documentation page includes all the elements from the module LavaPlayer.

Load Local Track

Requires DiSky v2.0.0

Loads a local track from the files of your server. The supported file types are: - MP3 - FLAC - WAV - Matroska/WebM (AAC, Opus or Vorbis codecs) - MP4/M4A (AAC codec) - OGG streams (Opus, Vorbis and FLAC codecs) - AAC streams - Stream playlists (M3U and PLS)

load local track from "plugins/music/mytrack.mp3" and store it in {_track}
load local track [from] [the] [file] %string% and store (it|the track) in %-objects%

Pause Track

Requires DiSky v2.0.0

Pause the current track & player. This won't clear the queue, nor will remove the current track. You can use 'resume track' to resume the track.

pause the track of event-guild
pause [the] (audio|track) (in|of) [the] [guild] %guild% [with [the] [bot] %bot%]

Resume Track

Requires DiSky v2.0.0

Resume the current track & player, if it's paused.

resume the track of event-guild
resume [the] (audio|track) (in|of) [the] [guild] %guild% [with [the] [bot] %bot%]

Skip Track

Requires DiSky v2.0.0

Skip the current track of a guild player. The new track will be returned.

skip the track of event-guild and store it in {_track}
skip track of event-guild
skip [the] (audio|track) (in|of) [the] [guild] %guild% [with [the] [bot] %bot%] [and store (it|[the] audiotrack) in %-objects%]

Stop Track

Requires DiSky v2.0.0

Stop the current track of a guild player. This will also remove the current track from the queue.

stop the track of event-guild
stop [the] (audio|track) (in|of) [the] [guild] %guild% [with [the] [bot] %bot%]

Loaded Playlist

Requires DiSky v2.0.0 [Return Type | audioplaylist]

Represent the loaded playlist in a 'on playlist loaded' sub-load section.

loaded playlist
[the] loaded playlist

Loaded Track

Requires DiSky v2.0.0 [Return Type | audiotrack]

Represent the loaded track in a 'on single load' sub-load section.

loaded track
[the] loaded track

Load Exception

Requires DiSky v2.0.0 [Return Type | string]

Represent the exception that occurred during the load of a research or items. This is the message only.

the exception
[the] exception

Guild Playing Track

Requires DiSky v2.0.0 [Return Type | audiotrack]

Get the current track playing in a guild. This cannot be changed via this expression, but you can use the 'play' effect to play a track.

set {_track} to playing track of event-guild
[all] [the] [audio] playing track of %guild%
[all] [the] %guild%'[s] [audio] playing track

Guild Queue

Requires DiSky v2.0.0 [Return Type | audiotrack]

Represents the audio queue of a guild. You can get the queue, but also add or remove tracks from it.

if queue of event-guild is empty:
add {_track} to queue of event-guild
[all] [the] [audio] queue of %guild%
[all] [the] %guild%'[s] [audio] queue

Playlist Tracks

Requires DiSky v2.0.0 [Return Type | audiotrack]

Get all the ordered tracks of a loaded playlist.

set {_tracks::*} to tracks of the loaded playlist
[all] [the] [audio[ ]]tracks of %audioplaylist%
[all] [the] %audioplaylist%'[s] [audio[ ]]tracks

Audio Mono Level

Requires DiSky v4.0.0 [Return Type | number]

This is an audio effect/filter. Set the mono level of the current audio track. The default value is 1.0

set mono level of event-guild to 0.5
[the] (audio|track) mono [level] of %guild%
%guild%'[s] (audio|track) mono [level]

Audio Pitch

Requires DiSky v4.0.0 [Return Type | number]

This is an audio effect/filter. Change the pitch of the current audio track. The default pitch is 1.0.

set audio speed of event-guild to 1.5
[the] (audio|track) pitch [level] of %guild%
%guild%'[s] (audio|track) pitch [level]

Audio Rotation

Requires DiSky v4.0.0 [Return Type | number]

This is an audio effect/filter. Change the rotation of the current audio track. (Sort of 8D effect) The default rotation is 1

set audio rotation of event-guild to 2
[the] (audio|track) rotation [level] of %guild%
%guild%'[s] (audio|track) rotation [level]

Audio Speed

Requires DiSky v4.0.0 [Return Type | number]

This is an audio effect/filter. Change the speed of the current audio track. The default speed is 1.0.

set audio speed of event-guild to 2
[the] (audio|track) speed [level] of %guild%
%guild%'[s] (audio|track) speed [level]

Guild Auto Play

Requires DiSky v2.0.0 [Return Type | boolean]

If enabled, when a track ends, the next will be played automatically. By default, this is disabled.

set auto play of event-guild to true
[the] [auto[( |-)]]play [state] of %guild%
%guild%'[s] [auto[( |-)]]play [state]

Guild Repeat

Requires DiSky v2.0.0 [Return Type | boolean]

If enabled, when a track ends, the same track will be played again. By default, this is disabled.

set repeat of event-guild to true
[the] [auto[( |-)]]repeat [state] of %guild%
%guild%'[s] [auto[( |-)]]repeat [state]

Guild Volume

Requires DiSky v2.0.0 [Return Type | integer]

Get the volume of a guild, or null if the guild have not player. This can be changed to change the audio volume of a guild. If the guild does not have any player, nothing will change. Note that the volume is a number between 0 and 1000.

set guild volume of event-guild to 100
set {_volume} to guild volume of event-guild
[the] [audio[ ]]guild volume of %guild%
%guild%'[s] [audio[ ]]guild volume

Playlist Name

Requires DiSky v2.0.0 [Return Type | string]

Get the name of a loaded playlist.

playlist name of the loaded playlist
[the] [audio[ ]]playlist name of %audioplaylist%
%audioplaylist%'[s] [audio[ ]]playlist name