Class UserUtil

java.lang.Object
de.presti.ree6.utils.others.UserUtil

public class UserUtil extends Object
Utility class used to handle User specific stuff that is being used multiple times.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    handleChatLevelReward(net.dv8tion.jda.api.entities.Guild guild, net.dv8tion.jda.api.entities.Member member)
    Check if a Member should get a role, when leveling up in the Guild, and if Ree6 has enough permissions.
    static void
    handleMemberJoin(net.dv8tion.jda.api.entities.Guild guild, net.dv8tion.jda.api.entities.Member member)
    Check if a Member should get a rule, when joining the Guild, and if Ree6 has enough permissions.
    static void
    handleVoiceLevelReward(net.dv8tion.jda.api.entities.Guild guild, net.dv8tion.jda.api.entities.Member member)
    Check if a Member should get a role, when leveling up in the Guild, and if Ree6 has enough permissions.
    static boolean
    isSupporter(net.dv8tion.jda.api.entities.Member member)
    Checks if a specific user has supported Ree6 via Donations!

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • handleMemberJoin

      public static void handleMemberJoin(net.dv8tion.jda.api.entities.Guild guild, net.dv8tion.jda.api.entities.Member member)
      Check if a Member should get a rule, when joining the Guild, and if Ree6 has enough permissions.
      Parameters:
      guild - the Guild Entity.
      member - the Member Entity.
    • handleVoiceLevelReward

      public static void handleVoiceLevelReward(net.dv8tion.jda.api.entities.Guild guild, net.dv8tion.jda.api.entities.Member member)
      Check if a Member should get a role, when leveling up in the Guild, and if Ree6 has enough permissions.
      Parameters:
      guild - the Guild Entity.
      member - the Member Entity.
    • handleChatLevelReward

      public static void handleChatLevelReward(net.dv8tion.jda.api.entities.Guild guild, net.dv8tion.jda.api.entities.Member member)
      Check if a Member should get a role, when leveling up in the Guild, and if Ree6 has enough permissions.
      Parameters:
      guild - the Guild Entity.
      member - the Member Entity.
    • isSupporter

      public static boolean isSupporter(net.dv8tion.jda.api.entities.Member member)
      Checks if a specific user has supported Ree6 via Donations!
      Parameters:
      member - the User of the current Guild to check.
      Returns:
      true if the User has supported Ree6 via Donations, false if not.