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 Summary
ConstructorsConstructorDescriptionLogMessageRole(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 Summary
Modifier 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.LogMessage
cancel, getAuthCode, getGuild, getId, getType, getWebhookMessage, isCanceled, setCanceled, setType, setWebhookMessage
-
Constructor Details
-
LogMessageRole
public 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-MessagelogTyp- The Typ of the current Log.role- theRoleof the Event.
-
LogMessageRole
public 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-MessagelogTyp- The Typ of the current Log.roleId- the ID of theRole.previousName- the previous Name of theRole.currentName- the current Name of theRole.
-
LogMessageRole
public 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-MessagelogTyp- The Typ of the current Log.roleId- the ID of theRole.previousName- the previous Name of theRole.currentName- the current Name of theRole.isCreated- the creation State of theRole.
-
LogMessageRole
public 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-MessagelogTyp- The Typ of the current Log.roleId- the ID of theRole.currentName- the current Name of theRole.isCreated- the creation State of theRole.
-
LogMessageRole
public 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-MessagelogTyp- The Typ of the current Log.roleId- the ID of theRole.previousColor- the previous Color of theRole.currentColor- the current Color of theRole.
-
LogMessageRole
public 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-MessagelogTyp- The Typ of the current Log.roleId- the ID of theRole.previousColor- the previous Color of theRole.currentColor- the current Color of theRole.isCreated- the creation State of theRole.
-
LogMessageRole
public 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-MessagelogTyp- The Typ of the current Log.roleId- the ID of theRole.previousPermission- the previous Permissions of theSet<net.dv8tion.jda.api.Permission>.currentPermission- the current Permissions of theSet<net.dv8tion.jda.api.Permission>.
-
LogMessageRole
public 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-MessagelogTyp- The Typ of the current Log.roleId- the ID of theRole.previousPermission- the previous Permissions of theSet<net.dv8tion.jda.api.Permission>.currentPermission- the current Permissions of theSet<net.dv8tion.jda.api.Permission>.isCreated- the creation State of theRole.
-
LogMessageRole
public 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-MessagelogTyp- The Typ of the current Log.roleId- the ID of theRole.currentName- the current Name of theRole.isCreated- the creation State of theRole.isDeleted- the deletion State of theRole.isHoisted- the hoisted State of theRole.isMentioned- the mentioned State of theRole.
-
-
Method Details
-
getRoleId
public long getRoleId()Get ID of theRole.- Returns:
- the ID of the
RoleasLong.
-
setRoleId
public void setRoleId(long roleId) Change theRoleID that is associated with the Event.- Parameters:
roleId- the ID of theRole
-
getPreviousName
Get the Previous Name of theRole.- Returns:
- the previous Name as
String.
-
setPreviousName
Change the previous Name of theRole.- Parameters:
previousName- the new previous Name asString.
-
getCurrentName
Get the current Name of theRole.- Returns:
- the current Name as
String
-
setCurrentName
Change the current Name of theRole.- Parameters:
currentName- the new current Name asString.
-
getPreviousColor
Get the previous Color of theRole.- Returns:
- the previous Color as
Color
-
setPreviousColor
Change the previous Color of theRole.- Parameters:
previousColor- the new previous Color asColor.
-
getCurrentColor
Get the current Color of theRole.- Returns:
- the current Color as
Color
-
setCurrentColor
Change the current Color of theRole.- Parameters:
currentColor- the new current Color asColor.
-
getPreviousPermission
Get the previousSet<net.dv8tion.jda.api.Permission>of theRole.- Returns:
- the previous
Set<net.dv8tion.jda.api.Permission>of theRole.
-
setPreviousPermission
Change the previousSet<net.dv8tion.jda.api.Permission>of theRole.- Parameters:
previousPermission- the new previousSet<net.dv8tion.jda.api.Permission>of theRole.
-
getCurrentPermission
Get the currentSet<net.dv8tion.jda.api.Permission>of theRole.- Returns:
- the current
Set<net.dv8tion.jda.api.Permission>of theRole.
-
setCurrentPermission
Change the currentSet<net.dv8tion.jda.api.Permission>of theRole.- Parameters:
currentPermission- the new currentSet<net.dv8tion.jda.api.Permission>of theRole.
-
isCreated
public boolean isCreated()Get the current creation State of theRole.- Returns:
- the current State as
Boolean.
-
setCreated
public void setCreated(boolean created) Change the current creation state of theRole.- Parameters:
created- the new state of creation.
-
isDeleted
public boolean isDeleted()Get the current deletion State of the Role.- Returns:
- the current State as
Boolean.
-
setDeleted
public void setDeleted(boolean deleted) Change the current deleted state of theRole.- Parameters:
deleted- the new state of deletion.
-
isHoisted
public boolean isHoisted()Get the current hoisted State of the Role.- Returns:
- the current State as
Boolean.
-
setHoisted
public void setHoisted(boolean hoisted) Change the current hoisted state of theRole.- Parameters:
hoisted- the new state of hoisted.
-
isMentioned
public boolean isMentioned()Get the current mentioned State of the Role.- Returns:
- the current State as
Boolean.
-
setMentioned
public void setMentioned(boolean mentioned) Change the current mentioned state of theRole.- Parameters:
mentioned- the new state of mentioned.
-
isChangedMentioned
public boolean isChangedMentioned()Get the current mentioned changed State of the Role.- Returns:
- the current State as
Boolean.
-
setChangedMentioned
public void setChangedMentioned(boolean changedMentioned) Change the current mentioned change state of theRole.- Parameters:
changedMentioned- the new state of mentioned change.
-
isChangedHoisted
public boolean isChangedHoisted()Get the current hoisted changed State of the Role.- Returns:
- the current State as
Boolean.
-
setChangedHoisted
public void setChangedHoisted(boolean changedHoisted) Change the current hoisted change state of theRole.- Parameters:
changedHoisted- the new state of hoisted change.
-