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).
        reason - The reason for this update.
      • setName

        void setName​(String name)
        Queues the name to be updated.
        name - The new name of the role.
      • setPermissions

        void setPermissions​(Permissions permissions)
        Queues the permissions to be updated.
        permissions - The new permissions of the role.
      • setColor

        void setColor​(Color color)
        Queues the color to be updated.
        color - The new color of the role.
      • setDisplaySeparatelyFlag

        void setDisplaySeparatelyFlag​(boolean displaySeparately)
        Queues the display separately flag (sometimes called "hoist") to be updated.
        displaySeparately - The new display separately flag of the role.
      • setMentionableFlag

        void setMentionableFlag​(boolean mentionable)
        Queues the mentionable flag to be updated.
        mentionable - The new mentionable flag of the role.
      • update

        CompletableFuture<Void> update​()
        Performs the queued updates.
        A future to check if the update was successful.