object LavaplayerHandler
- Alphabetic
- By Inheritance
- LavaplayerHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
AlreadyConnectedFailure(connectedVoiceChannelId: VoiceGuildChannelId, triedVoiceChannelId: VoiceGuildChannelId) extends Reply with Product with Serializable
Sent as a response to ConnectVoiceChannel if the client is already connected to a different voice channel in this guild.
Sent as a response to ConnectVoiceChannel if the client is already connected to a different voice channel in this guild.
- connectedVoiceChannelId
The currently connected voice channel
- triedVoiceChannelId
The channel that was tried and failed
-
class
AudioEventSender[A] extends AudioEventListener
An adapter between com.sedmelluq.discord.lavaplayer.player.event.AudioEventListener and actors.
- sealed trait Command extends AnyRef
-
case class
ConnectVoiceChannel(channelId: VoiceGuildChannelId, force: Boolean = false, replyTo: ActorRef[Reply]) extends Command with Product with Serializable
Connect to a voice channel.
Connect to a voice channel.
- channelId
The channel to connect to
- force
If it should connect even if it's already connecting, or is connected to another channel(move)
- class ForcedConnectedException extends Exception
-
case class
ForcedConnectionFailure(oldVoiceChannelId: VoiceGuildChannelId, newVoiceChannelId: VoiceGuildChannelId) extends Reply with Product with Serializable
Sent if a connection initially succeeded, but is forced away by something else.
Sent if a connection initially succeeded, but is forced away by something else.
- oldVoiceChannelId
The old voice channel id before the switch
- newVoiceChannelId
The new voice channel id after the switch
- sealed trait InactiveState extends AnyRef
-
case class
MusicReady(serverId: RawSnowflake, userId: UserId) extends Reply with Product with Serializable
Sent as a response to ConnectVoiceChannel when everything is ready.
-
class
NoMatchException extends Exception
An exception signaling that a com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager find a track.
- case class Parameters(player: AudioPlayer, guildId: GuildId, cache: Cache, context: ActorContext[Command], log: Logger) extends Product with Serializable
- sealed trait Reply extends AnyRef
-
case class
SetPlaying(speaking: Boolean) extends Command with Product with Serializable
Set if the bot should be playing(speaking) or not.
Set if the bot should be playing(speaking) or not. This is required to send sound.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def active(parameters: Parameters, state: CanSendAudio): Behavior[Command]
- def apply(player: AudioPlayer, guildId: GuildId, cache: Cache): Behavior[Command]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def handleConflictingConnect(command: ConnectVoiceChannel, parameters: Parameters, newVoiceChannelId: VoiceGuildChannelId, inVoiceChannelId: VoiceGuildChannelId, force: Boolean, firstSender: ActorRef[Reply], newSender: ActorRef[Reply], voiceHandler: Option[ActorRef[voice.VoiceHandler.Command]], readyListener: Option[ActorRef[AudioAPIMessage]], movedMonitor: Option[ActorRef[MovedMonitor.Command]]): Behavior[Command]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inactive(parameters: Parameters, state: InactiveState): Behavior[Command]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
loadItem(playerManager: AudioPlayerManager, identifier: String): Future[AudioItem]
Tries to load an item given an identifier and returns it as a future.
Tries to load an item given an identifier and returns it as a future. If there were no matches, the future fails with NoMatchException. Otherwise it fails with com.sedmelluq.discord.lavaplayer.tools.FriendlyException.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
object
DisconnectVoiceChannel extends Command with Product with Serializable
Disconnect from a voice channel
-
object
Shutdown extends Command with Product with Serializable
Stops this lavaplyer handler gracefully, and logs out of the voice gateway if connected.