Class LogMessageVoice

java.lang.Object
de.presti.ree6.logger.events.LogMessage
de.presti.ree6.logger.events.implentation.LogMessageVoice

public class LogMessageVoice extends LogMessage
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

    Constructors
    Constructor
    Description
    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.
    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 Type
    Method
    Description
    net.dv8tion.jda.api.entities.channel.middleman.AudioChannel
    Get the current AudioChannel of the Member
    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 previous AudioChannel of the Member

    Methods inherited from class de.presti.ree6.logger.events.LogMessage

    cancel, getAuthCode, getGuild, getId, getType, getWebhookMessage, isCanceled, setCanceled, setType, setWebhookMessage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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-Message
      logTyp - The Typ of the current Log.
      member - the Member associated with the Event.
      voiceChannel - the AudioChannel 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-Message
      logTyp - The Typ of the current Log.
      member - the Member associated with the Event.
      previousVoiceChannel - the previous AudioChannel of the Event.
      currentVoiceChannel - the current AudioChannel 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 previous AudioChannel of the Member
      Returns:
      the previous AudioChannel.
    • getCurrentVoiceChannel

      public net.dv8tion.jda.api.entities.channel.middleman.AudioChannel getCurrentVoiceChannel()
      Get the current AudioChannel of the Member
      Returns:
      the current AudioChannel.