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
ConstructorDescriptionLogMessageRole
(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 aRole
base 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 aRole
based 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
.long
Get ID of theRole
.boolean
Get the current hoisted changed State of the Role.boolean
Get the current mentioned changed State of the Role.boolean
Get the current creation State of theRole
.boolean
Get the current deletion State of the Role.boolean
Get the current hoisted State of the Role.boolean
Get the current mentioned State of the Role.void
setChangedHoisted
(boolean changedHoisted) Change the current hoisted change state of theRole
.void
setChangedMentioned
(boolean changedMentioned) Change the current mentioned change state of theRole
.void
setCreated
(boolean created) Change the current creation state of theRole
.void
setCurrentColor
(Color currentColor) Change the current Color of theRole
.void
setCurrentName
(String currentName) Change the current Name of theRole
.void
setCurrentPermission
(Set<net.dv8tion.jda.api.Permission> currentPermission) Change the currentSet<net.dv8tion.jda.api.Permission>
of theRole
.void
setDeleted
(boolean deleted) Change the current deleted state of theRole
.void
setHoisted
(boolean hoisted) Change the current hoisted state of theRole
.void
setMentioned
(boolean mentioned) Change the current mentioned state of theRole
.void
setPreviousColor
(Color previousColor) Change the previous Color of theRole
.void
setPreviousName
(String previousName) Change the previous Name of theRole
.void
setPreviousPermission
(Set<net.dv8tion.jda.api.Permission> previousPermission) Change the previousSet<net.dv8tion.jda.api.Permission>
of theRole
.void
setRoleId
(long roleId) Change theRole
ID 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 aRole
based 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
- theRole
of 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 aRole
base 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
Role
asLong
.
-
setRoleId
public void setRoleId(long roleId) Change theRole
ID 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.
-