Class VoiceServerUpdateImpl
java.lang.Object
com.mewna.catnip.entity.impl.voice.VoiceServerUpdateImpl
- All Implemented Interfaces:
Entity
,GuildEntity
,HasGuild
,RequiresCatnip
,VoiceServerUpdate
- Since:
- 10/6/18.
- Author:
- amy
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionVoiceServerUpdateImpl
(Catnip catnip, long guildIdAsLong, String token, String endpoint) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
endpoint()
long
The id of the guild this entity is from.guildIdAsLong
(long guildIdAsLong) token()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.partials.GuildEntity
guild
-
Constructor Details
-
VoiceServerUpdateImpl
public VoiceServerUpdateImpl() -
VoiceServerUpdateImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
guildIdAsLong
public long guildIdAsLong()Description copied from interface:HasGuild
The id of the guild this entity is from.- Specified by:
guildIdAsLong
in interfaceHasGuild
- Returns:
- Long representing the guild ID.
-
token
- Specified by:
token
in interfaceVoiceServerUpdate
- Returns:
- The token used for voice connections.
-
endpoint
- Specified by:
endpoint
in interfaceVoiceServerUpdate
- Returns:
- The endpoint to open voice connections to.
-
guildIdAsLong
- Returns:
this
.
-
token
- Returns:
this
.
-
endpoint
- Returns:
this
.
-