Class LogMessageMember
java.lang.Object
de.presti.ree6.logger.events.LogMessage
de.presti.ree6.logger.events.implentation.LogMessageMember
This is class is used to store MemberData for Logs which work with
Data of Members.
-
Constructor Summary
ConstructorDescriptionLogMessageMember
(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp) Constructor for a Log-Message which shouldn't be handled.LogMessageMember
(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) Constructor for a Log-Message which shouldn't be handled.LogMessageMember
(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, String previousName, String currentName) Constructor for a Name change Event.LogMessageMember
(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, String previousName, String currentName, List<net.dv8tion.jda.api.entities.Role> removedRoles, List<net.dv8tion.jda.api.entities.Role> addedRoles) Constructor for everything.LogMessageMember
(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, List<net.dv8tion.jda.api.entities.Role> removedRoles, List<net.dv8tion.jda.api.entities.Role> addedRoles) Constructor for the Role change Event. -
Method Summary
Modifier and TypeMethodDescriptionList<net.dv8tion.jda.api.entities.Role>
Get the addRole
s of the Member.Get the current Name of theMember
.net.dv8tion.jda.api.entities.Member
Get the Member that is associated with the Log.Get the Previous Name of theMember
.List<net.dv8tion.jda.api.entities.Role>
Get the removeRole
s of the Member.void
setAddedRoles
(List<net.dv8tion.jda.api.entities.Role> addedRoles) Set a new added Roles asList<net.dv8tion.jda.api.entities.Role>
.void
setCurrentName
(String currentName) Change the current Name of theMember
.void
setMember
(net.dv8tion.jda.api.entities.Member member) Change the associated Member of the Log.void
setPreviousName
(String previousName) Change the previous Name of theMember
.void
setRemovedRoles
(List<net.dv8tion.jda.api.entities.Role> removedRoles) Set a new deleted Roles asList<net.dv8tion.jda.api.entities.Role>
.Methods inherited from class de.presti.ree6.logger.events.LogMessage
cancel, getAuthCode, getGuild, getId, getType, getWebhookMessage, isCanceled, setCanceled, setType, setWebhookMessage
-
Constructor Details
-
LogMessageMember
public LogMessageMember(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp) Constructor for a Log-Message which shouldn't be handled.- Parameters:
webhookId
- The ID of the Webhook.webhookAuthCode
- The Auth-Token for the Webhook.webhookMessage
- WebhookMessage itself.guild
- The Guild related to the Log-MessagelogTyp
- The Typ of the current Log.
-
LogMessageMember
public LogMessageMember(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) Constructor for a Log-Message which shouldn't be handled.- Parameters:
webhookId
- The ID of the Webhook.webhookAuthCode
- The Auth-Token for the Webhook.webhookMessage
- WebhookMessage itself.guild
- The Guild related to the Log-MessagelogTyp
- The Typ of the current Log.member
- The Member related to the Log-Message.
-
LogMessageMember
public LogMessageMember(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, String previousName, String currentName) Constructor for a Name change 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-MessagelogTyp
- The Typ of the current Log.member
- the GuildMember
.previousName
- the previous Name of the Member.currentName
- the current Name of the Member.
-
LogMessageMember
public LogMessageMember(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, List<net.dv8tion.jda.api.entities.Role> removedRoles, List<net.dv8tion.jda.api.entities.Role> addedRoles) Constructor for the Role change 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-MessagelogTyp
- The Typ of the current Log.member
- the GuildMember
.removedRoles
- the RemovedRole
of theMember
.addedRoles
- the AddedRole
of theMember
.
-
LogMessageMember
public LogMessageMember(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, String previousName, String currentName, List<net.dv8tion.jda.api.entities.Role> removedRoles, List<net.dv8tion.jda.api.entities.Role> addedRoles) Constructor for everything.- Parameters:
webhookId
- The ID of the Webhook.webhookAuthCode
- The Auth-Token for the Webhook.webhookMessage
- WebhookMessage itself.guild
- The Guild related to the Log-MessagelogTyp
- The Typ of the current Log.member
- the GuildMember
.previousName
- the previous Name of the Member.currentName
- the current Name of the Member.removedRoles
- the RemovedRole
of theMember
.addedRoles
- the AddedRole
of theMember
.
-
-
Method Details
-
getMember
public net.dv8tion.jda.api.entities.Member getMember()Get the Member that is associated with the Log.- Returns:
- the
Member
-
setMember
public void setMember(net.dv8tion.jda.api.entities.Member member) Change the associated Member of the Log.- Parameters:
member
- the newMember
.
-
getPreviousName
Get the Previous Name of theMember
.- Returns:
- the previous Name as
String
.
-
setPreviousName
Change the previous Name of theMember
.- Parameters:
previousName
- the new previous Name asString
.
-
getCurrentName
Get the current Name of theMember
.- Returns:
- the current Name as
String
-
setCurrentName
Change the current Name of theMember
.- Parameters:
currentName
- the new current Name asString
.
-
getRemovedRoles
Get the removeRole
s of the Member.- Returns:
- a
List<net.dv8tion.jda.api.entities.Role>
with every removed Role.
-
setRemovedRoles
Set a new deleted Roles asList<net.dv8tion.jda.api.entities.Role>
.- Parameters:
removedRoles
- the newList<net.dv8tion.jda.api.entities.Role>
.
-
getAddedRoles
Get the addRole
s of the Member.- Returns:
- a
List<net.dv8tion.jda.api.entities.Role>
with every added Role.
-
setAddedRoles
Set a new added Roles asList<net.dv8tion.jda.api.entities.Role>
.- Parameters:
addedRoles
- the newList<net.dv8tion.jda.api.entities.Role>
.
-