Interface CustomEmojiUpdaterDelegate
-
public interface CustomEmojiUpdaterDelegateThis class is internally used by theCustomEmojiUpdaterto update custom emojis. You usually don't want to interact with this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRoleToWhitelist(Role role)Queues a role to be added to the whitelist.voidremoveRoleFromWhitelist(Role role)Queues a role to be removed from the whitelist.voidremoveWhitelist()Queues the whitelist to be removed.voidsetAuditLogReason(String reason)Sets the reason for this update.voidsetName(String name)Queues the name to be updated.voidsetWhitelist(Collection<Role> roles)Sets the roles which should be whitelisted.voidsetWhitelist(Role... roles)Sets the roles which should be whitelisted.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 emoji.
-
addRoleToWhitelist
void addRoleToWhitelist(Role role)
Queues a role to be added to the whitelist.- Parameters:
role- The role to add.
-
removeRoleFromWhitelist
void removeRoleFromWhitelist(Role role)
Queues a role to be removed from the whitelist. To be active, the whitelist must at least contain one role, otherwise everyone can use the emoji!- Parameters:
role- The role to remove.
-
removeWhitelist
void removeWhitelist()
Queues the whitelist to be removed.
-
setWhitelist
void setWhitelist(Collection<Role> roles)
Sets the roles which should be whitelisted. To be active, the whitelist must at least contain one role, otherwise everyone can use the emoji!- Parameters:
roles- The roles which should be whitelisted.
-
setWhitelist
void setWhitelist(Role... roles)
Sets the roles which should be whitelisted. To be active, the whitelist must at least contain one role, otherwise everyone can use the emoji!- Parameters:
roles- The roles which should be whitelisted.
-
update
CompletableFuture<Void> update()
Performs the queued updates.- Returns:
- A future to check if the update was successful.
-
-