Class LogMessageRole
java.lang.Object
de.presti.ree6.logger.events.LogMessage
de.presti.ree6.logger.events.implentation.LogMessageRole
This class is used for merging Role Activity Logs to save Webhook Messages
 to prevent Rate-Limits.
- 
Constructor SummaryConstructorsConstructorDescriptionLogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, Color previousColor, Color currentColor) A Constructor for a Name change Event.LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, Color previousColor, Color currentColor, boolean isCreated) A Constructor for a Color change Event.LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, String currentName, boolean isCreated) A Constructor for a creation Event.LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, String currentName, boolean isCreated, boolean isDeleted, boolean isHoisted, boolean isMentioned) A Constructor for aRolebase Event.LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, String previousName, String currentName) A Constructor for a Name change Event.LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, String previousName, String currentName, boolean isCreated) A Constructor for a Name change Event.LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, Set<net.dv8tion.jda.api.Permission> previousPermission, Set<net.dv8tion.jda.api.Permission> currentPermission) A Constructor for a Permission change Event.LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, Set<net.dv8tion.jda.api.Permission> previousPermission, Set<net.dv8tion.jda.api.Permission> currentPermission, boolean isCreated) A Constructor for a Permission change Event.LogMessageRole(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.Role role) A Constructor for aRolebased Event.
- 
Method SummaryModifier and TypeMethodDescriptionGet the current Color of theRole.Get the current Name of theRole.Set<net.dv8tion.jda.api.Permission>Get the currentSet<net.dv8tion.jda.api.Permission>of theRole.Get the previous Color of theRole.Get the Previous Name of theRole.Set<net.dv8tion.jda.api.Permission>Get the previousSet<net.dv8tion.jda.api.Permission>of theRole.longGet ID of theRole.booleanGet the current hoisted changed State of the Role.booleanGet the current mentioned changed State of the Role.booleanGet the current creation State of theRole.booleanGet the current deletion State of the Role.booleanGet the current hoisted State of the Role.booleanGet the current mentioned State of the Role.voidsetChangedHoisted(boolean changedHoisted) Change the current hoisted change state of theRole.voidsetChangedMentioned(boolean changedMentioned) Change the current mentioned change state of theRole.voidsetCreated(boolean created) Change the current creation state of theRole.voidsetCurrentColor(Color currentColor) Change the current Color of theRole.voidsetCurrentName(String currentName) Change the current Name of theRole.voidsetCurrentPermission(Set<net.dv8tion.jda.api.Permission> currentPermission) Change the currentSet<net.dv8tion.jda.api.Permission>of theRole.voidsetDeleted(boolean deleted) Change the current deleted state of theRole.voidsetHoisted(boolean hoisted) Change the current hoisted state of theRole.voidsetMentioned(boolean mentioned) Change the current mentioned state of theRole.voidsetPreviousColor(Color previousColor) Change the previous Color of theRole.voidsetPreviousName(String previousName) Change the previous Name of theRole.voidsetPreviousPermission(Set<net.dv8tion.jda.api.Permission> previousPermission) Change the previousSet<net.dv8tion.jda.api.Permission>of theRole.voidsetRoleId(long roleId) Change theRoleID that is associated with the Event.Methods inherited from class de.presti.ree6.logger.events.LogMessagecancel, getAuthCode, getGuild, getId, getType, getWebhookMessage, isCanceled, setCanceled, setType, setWebhookMessage
- 
Constructor Details- 
LogMessageRolepublic LogMessageRole(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.Role role) A Constructor for aRolebased 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-Message
- logTyp- The Typ of the current Log.
- role- the- Roleof the Event.
 
- 
LogMessageRolepublic LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, String previousName, String currentName) A 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-Message
- logTyp- The Typ of the current Log.
- roleId- the ID of the- Role.
- previousName- the previous Name of the- Role.
- currentName- the current Name of the- Role.
 
- 
LogMessageRolepublic LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, String previousName, String currentName, boolean isCreated) A 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-Message
- logTyp- The Typ of the current Log.
- roleId- the ID of the- Role.
- previousName- the previous Name of the- Role.
- currentName- the current Name of the- Role.
- isCreated- the creation State of the- Role.
 
- 
LogMessageRolepublic LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, String currentName, boolean isCreated) A Constructor for a creation 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-Message
- logTyp- The Typ of the current Log.
- roleId- the ID of the- Role.
- currentName- the current Name of the- Role.
- isCreated- the creation State of the- Role.
 
- 
LogMessageRolepublic LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, Color previousColor, Color currentColor) A 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-Message
- logTyp- The Typ of the current Log.
- roleId- the ID of the- Role.
- previousColor- the previous Color of the- Role.
- currentColor- the current Color of the- Role.
 
- 
LogMessageRolepublic LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, Color previousColor, Color currentColor, boolean isCreated) A Constructor for a Color 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-Message
- logTyp- The Typ of the current Log.
- roleId- the ID of the- Role.
- previousColor- the previous Color of the- Role.
- currentColor- the current Color of the- Role.
- isCreated- the creation State of the- Role.
 
- 
LogMessageRolepublic LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, Set<net.dv8tion.jda.api.Permission> previousPermission, Set<net.dv8tion.jda.api.Permission> currentPermission) A Constructor for a Permission 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-Message
- logTyp- The Typ of the current Log.
- roleId- the ID of the- Role.
- previousPermission- the previous Permissions of the- Set<net.dv8tion.jda.api.Permission>.
- currentPermission- the current Permissions of the- Set<net.dv8tion.jda.api.Permission>.
 
- 
LogMessageRolepublic LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, Set<net.dv8tion.jda.api.Permission> previousPermission, Set<net.dv8tion.jda.api.Permission> currentPermission, boolean isCreated) A Constructor for a Permission 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-Message
- logTyp- The Typ of the current Log.
- roleId- the ID of the- Role.
- previousPermission- the previous Permissions of the- Set<net.dv8tion.jda.api.Permission>.
- currentPermission- the current Permissions of the- Set<net.dv8tion.jda.api.Permission>.
- isCreated- the creation State of the- Role.
 
- 
LogMessageRolepublic LogMessageRole(long webhookId, String webhookAuthCode, club.minnced.discord.webhook.send.WebhookMessage webhookMessage, net.dv8tion.jda.api.entities.Guild guild, LogTyp logTyp, long roleId, String currentName, boolean isCreated, boolean isDeleted, boolean isHoisted, boolean isMentioned) A Constructor for aRolebase 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-Message
- logTyp- The Typ of the current Log.
- roleId- the ID of the- Role.
- currentName- the current Name of the- Role.
- isCreated- the creation State of the- Role.
- isDeleted- the deletion State of the- Role.
- isHoisted- the hoisted State of the- Role.
- isMentioned- the mentioned State of the- Role.
 
 
- 
- 
Method Details- 
getRoleIdpublic long getRoleId()Get ID of theRole.- Returns:
- the ID of the RoleasLong.
 
- 
setRoleIdpublic void setRoleId(long roleId) Change theRoleID that is associated with the Event.- Parameters:
- roleId- the ID of the- Role
 
- 
getPreviousNameGet the Previous Name of theRole.- Returns:
- the previous Name as String.
 
- 
setPreviousNameChange the previous Name of theRole.- Parameters:
- previousName- the new previous Name as- String.
 
- 
getCurrentNameGet the current Name of theRole.- Returns:
- the current Name as String
 
- 
setCurrentNameChange the current Name of theRole.- Parameters:
- currentName- the new current Name as- String.
 
- 
getPreviousColorGet the previous Color of theRole.- Returns:
- the previous Color as Color
 
- 
setPreviousColorChange the previous Color of theRole.- Parameters:
- previousColor- the new previous Color as- Color.
 
- 
getCurrentColorGet the current Color of theRole.- Returns:
- the current Color as Color
 
- 
setCurrentColorChange the current Color of theRole.- Parameters:
- currentColor- the new current Color as- Color.
 
- 
getPreviousPermissionGet the previousSet<net.dv8tion.jda.api.Permission>of theRole.- Returns:
- the previous Set<net.dv8tion.jda.api.Permission>of theRole.
 
- 
setPreviousPermissionChange the previousSet<net.dv8tion.jda.api.Permission>of theRole.- Parameters:
- previousPermission- the new previous- Set<net.dv8tion.jda.api.Permission>of the- Role.
 
- 
getCurrentPermissionGet the currentSet<net.dv8tion.jda.api.Permission>of theRole.- Returns:
- the current Set<net.dv8tion.jda.api.Permission>of theRole.
 
- 
setCurrentPermissionChange the currentSet<net.dv8tion.jda.api.Permission>of theRole.- Parameters:
- currentPermission- the new current- Set<net.dv8tion.jda.api.Permission>of the- Role.
 
- 
isCreatedpublic boolean isCreated()Get the current creation State of theRole.- Returns:
- the current State as Boolean.
 
- 
setCreatedpublic void setCreated(boolean created) Change the current creation state of theRole.- Parameters:
- created- the new state of creation.
 
- 
isDeletedpublic boolean isDeleted()Get the current deletion State of the Role.- Returns:
- the current State as Boolean.
 
- 
setDeletedpublic void setDeleted(boolean deleted) Change the current deleted state of theRole.- Parameters:
- deleted- the new state of deletion.
 
- 
isHoistedpublic boolean isHoisted()Get the current hoisted State of the Role.- Returns:
- the current State as Boolean.
 
- 
setHoistedpublic void setHoisted(boolean hoisted) Change the current hoisted state of theRole.- Parameters:
- hoisted- the new state of hoisted.
 
- 
isMentionedpublic boolean isMentioned()Get the current mentioned State of the Role.- Returns:
- the current State as Boolean.
 
- 
setMentionedpublic void setMentioned(boolean mentioned) Change the current mentioned state of theRole.- Parameters:
- mentioned- the new state of mentioned.
 
- 
isChangedMentionedpublic boolean isChangedMentioned()Get the current mentioned changed State of the Role.- Returns:
- the current State as Boolean.
 
- 
setChangedMentionedpublic void setChangedMentioned(boolean changedMentioned) Change the current mentioned change state of theRole.- Parameters:
- changedMentioned- the new state of mentioned change.
 
- 
isChangedHoistedpublic boolean isChangedHoisted()Get the current hoisted changed State of the Role.- Returns:
- the current State as Boolean.
 
- 
setChangedHoistedpublic void setChangedHoisted(boolean changedHoisted) Change the current hoisted change state of theRole.- Parameters:
- changedHoisted- the new state of hoisted change.
 
 
-