Class JdaUserImpl

java.lang.Object
dev.jacrispys.JavaBot.api.analytics.objects.JdaUserImpl
All Implemented Interfaces:
JdaUser
Direct Known Subclasses:
AudioUserImpl, GuildUserImpl

public class JdaUserImpl extends Object implements JdaUser
Implementation of the JdaUser interface
  • Constructor Details

    • JdaUserImpl

      public JdaUserImpl(net.dv8tion.jda.api.JDA jda, long userId)
  • Method Details

    • getGuilds

      public List<net.dv8tion.jda.api.entities.Guild> getGuilds()
      Specified by:
      getGuilds in interface JdaUser
      Returns:
      list of guilds the user is a member of
    • getAudioUser

      public AudioUser getAudioUser(net.dv8tion.jda.api.entities.Guild guild)
      Specified by:
      getAudioUser in interface JdaUser
      Parameters:
      guild - to reference for AudioUser data
      Returns:
      an instance of the AudioUser
    • getGuildUser

      public GuildUser getGuildUser(net.dv8tion.jda.api.entities.Guild guild)
      Specified by:
      getGuildUser in interface JdaUser
      Parameters:
      guild - to get data from
      Returns:
      instance of a GuildUser from the given guild
    • getUser

      public net.dv8tion.jda.api.entities.User getUser()
      Specified by:
      getUser in interface JdaUser
      Returns:
      JDA User object that correlates with this project's adaptation