Class PassthroughDaveSessionFactory
java.lang.Object
net.dv8tion.jda.api.audio.dave.PassthroughDaveSessionFactory
- All Implemented Interfaces:
DaveSessionFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDaveSession(DaveProtocolCallbacks callbacks, long userId, long channelId) Create a new DAVE session.
-
Constructor Details
-
PassthroughDaveSessionFactory
public PassthroughDaveSessionFactory()
-
-
Method Details
-
createDaveSession
@Nonnull public DaveSession createDaveSession(@Nonnull DaveProtocolCallbacks callbacks, long userId, long channelId) Description copied from interface:DaveSessionFactoryCreate a new DAVE session.The session should not yet be started. JDA will invoke
DaveSession.initialize()once a connection to the voice gateway is established.The dave session should be started/created in
DaveSession.onSelectProtocolAck(int), which will provide the target protocol version.- Specified by:
createDaveSessionin interfaceDaveSessionFactory- Parameters:
callbacks- Thecallbacksto facilitate the protocol communicationuserId- The id of the connecting bot (self user)channelId- The id of the channel or group of the connection (audio channel)- Returns:
DaveSession
-