Interface RoleUpdaterDelegate



  • public interface RoleUpdaterDelegate
    This class is internally used by the RoleUpdater to update roles. 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 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.