public class VoiceServerUpdateEvent extends Event
This event is dispatched by Discord.
Constructor and Description |
---|
VoiceServerUpdateEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
String token,
long guildId,
String endpoint) |
Modifier and Type | Method and Description |
---|---|
String |
getEndpoint()
Gets the voice server host's endpoint URL.
|
Mono<Guild> |
getGuild()
Requests to retrieve the
Guild whose voice server has been updated in this event. |
Snowflake |
getGuildId()
Gets the
Snowflake ID of the guild whose voice server has been updated in this event. |
String |
getToken()
Gets the voice connection token for the guild.
|
String |
toString() |
getClient, getShardInfo
public VoiceServerUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, String token, long guildId, @Nullable String endpoint)
public String getToken()
public Snowflake getGuildId()
Snowflake
ID of the guild whose voice server has been updated in this event.public Mono<Guild> getGuild()
Guild
whose voice server has been updated in this event.@Nullable public String getEndpoint()