Package de.presti.ree6.utils.others
Class UserUtil
java.lang.Object
de.presti.ree6.utils.others.UserUtil
Utility class used to handle User specific stuff that is being used multiple times.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleChatLevelReward(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 voidhandleMemberJoin(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 voidhandleVoiceLevelReward(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 booleanisSupporter(net.dv8tion.jda.api.entities.Member member) Checks if a specific user has supported Ree6 via Donations!
-
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- theGuildEntity.member- theMemberEntity.
-
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- theGuildEntity.member- theMemberEntity.
-
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- theGuildEntity.member- theMemberEntity.
-
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.
-