Interface RoleUpdaterDelegate
-
public interface RoleUpdaterDelegateThis class is internally used by theRoleUpdaterto update roles. You usually don't want to interact with this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetAuditLogReason(String reason)Sets the reason for this update.voidsetColor(Color color)Queues the color to be updated.voidsetDisplaySeparatelyFlag(boolean displaySeparately)Queues the display separately flag (sometimes called "hoist") to be updated.voidsetMentionableFlag(boolean mentionable)Queues the mentionable flag to be updated.voidsetName(String name)Queues the name to be updated.voidsetPermissions(Permissions permissions)Queues the permissions to be updated.CompletableFuture<Void>update()Performs the queued updates.
-
-
-
Method Detail
-
setAuditLogReason
void setAuditLogReason(String reason)
Sets the reason for this update. This reason will be visible in the audit log entry(s).- Parameters:
reason- The reason for this update.
-
setName
void setName(String name)
Queues the name to be updated.- Parameters:
name- The new name of the role.
-
setPermissions
void setPermissions(Permissions permissions)
Queues the permissions to be updated.- Parameters:
permissions- The new permissions of the role.
-
setColor
void setColor(Color color)
Queues the color to be updated.- Parameters:
color- The new color of the role.
-
setDisplaySeparatelyFlag
void setDisplaySeparatelyFlag(boolean displaySeparately)
Queues the display separately flag (sometimes called "hoist") to be updated.- Parameters:
displaySeparately- The new display separately flag of the role.
-
setMentionableFlag
void setMentionableFlag(boolean mentionable)
Queues the mentionable flag to be updated.- Parameters:
mentionable- The new mentionable flag of the role.
-
update
CompletableFuture<Void> update()
Performs the queued updates.- Returns:
- A future to check if the update was successful.
-
-