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
ConstructorsConstructorDescriptionLogMessageVoice(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.AudioChannelGet the currentAudioChannelof theMembernet.dv8tion.jda.api.entities.MemberGet the Member that is associated with the Log.net.dv8tion.jda.api.entities.channel.middleman.AudioChannelGet the previousAudioChannelof theMemberMethods 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- theMemberassociated with the Event.voiceChannel- theAudioChannelassociated 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- theMemberassociated with the Event.previousVoiceChannel- the previousAudioChannelof the Event.currentVoiceChannel- the currentAudioChannelof 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 previousAudioChannelof theMember- Returns:
- the previous
AudioChannel.
-
getCurrentVoiceChannel
public net.dv8tion.jda.api.entities.channel.middleman.AudioChannel getCurrentVoiceChannel()Get the currentAudioChannelof theMember- Returns:
- the current
AudioChannel.
-