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 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!
-
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
- theGuild
Entity.member
- theMember
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
- theGuild
Entity.member
- theMember
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
- theGuild
Entity.member
- theMember
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.
-