Interface CustomEmojiUpdaterDelegate



  • public interface CustomEmojiUpdaterDelegate
    This class is internally used by the CustomEmojiUpdater to update custom emojis. You usually don't want to interact with this object.
    • 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.