Class LogMessageVoice
java.lang.Object
de.presti.ree6.logger.events.LogMessage
de.presti.ree6.logger.events.implentation.LogMessageVoice
This is class is used to store VoiceData for Logs which work
with Stuff like the current state of Members in a voice or,
the change of their current voice-state.
-
Constructor Summary
ConstructorDescriptionLogMessageVoice
(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, net.dv8tion.jda.api.entities.Member member, net.dv8tion.jda.api.entities.channel.middleman.AudioChannel voiceChannel) Constructor for an Audio Channel join / leave Event.LogMessageVoice
(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, net.dv8tion.jda.api.entities.Member member, net.dv8tion.jda.api.entities.channel.middleman.AudioChannel previousVoiceChannel, net.dv8tion.jda.api.entities.channel.middleman.AudioChannel currentVoiceChannel) Constructor for a Member Audio Channel Move Event. -
Method Summary
Modifier and TypeMethodDescriptionnet.dv8tion.jda.api.entities.channel.middleman.AudioChannel
Get the currentAudioChannel
of theMember
net.dv8tion.jda.api.entities.Member
Get the Member that is associated with the Log.net.dv8tion.jda.api.entities.channel.middleman.AudioChannel
Get the previousAudioChannel
of theMember
Methods inherited from class de.presti.ree6.logger.events.LogMessage
cancel, getAuthCode, getGuild, getId, getType, getWebhookMessage, isCanceled, setCanceled, setType, setWebhookMessage
-
Constructor Details
-
LogMessageVoice
public LogMessageVoice(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, net.dv8tion.jda.api.entities.Member member, net.dv8tion.jda.api.entities.channel.middleman.AudioChannel voiceChannel) Constructor for an Audio Channel join / leave Event.- Parameters:
webhookId
- The ID of the Webhook.webhookAuthCode
- The Auth-Token for the Webhook.webhookMessage
- WebhookMessage itself.guild
- The Guild related to the Log-MessagelogTyp
- The Typ of the current Log.member
- theMember
associated with the Event.voiceChannel
- theAudioChannel
associated with the Event.
-
LogMessageVoice
public LogMessageVoice(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, net.dv8tion.jda.api.entities.Member member, net.dv8tion.jda.api.entities.channel.middleman.AudioChannel previousVoiceChannel, net.dv8tion.jda.api.entities.channel.middleman.AudioChannel currentVoiceChannel) Constructor for a Member Audio Channel Move Event.- Parameters:
webhookId
- The ID of the Webhook.webhookAuthCode
- The Auth-Token for the Webhook.webhookMessage
- WebhookMessage itself.guild
- The Guild related to the Log-MessagelogTyp
- The Typ of the current Log.member
- theMember
associated with the Event.previousVoiceChannel
- the previousAudioChannel
of the Event.currentVoiceChannel
- the currentAudioChannel
of the Event.
-
-
Method Details
-
getMember
public net.dv8tion.jda.api.entities.Member getMember()Get the Member that is associated with the Log.- Returns:
- the
Member
.
-
getPreviousVoiceChannel
public net.dv8tion.jda.api.entities.channel.middleman.AudioChannel getPreviousVoiceChannel()Get the previousAudioChannel
of theMember
- Returns:
- the previous
AudioChannel
.
-
getCurrentVoiceChannel
public net.dv8tion.jda.api.entities.channel.middleman.AudioChannel getCurrentVoiceChannel()Get the currentAudioChannel
of theMember
- Returns:
- the current
AudioChannel
.
-