ServerRejectedScheduling

The server rejected scheduling, editing or rescheduling the message, for example because the scheduling limit of the channel is reached. The latest changes are kept.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
@Immutable
abstract class Reason

The reason the server rejects scheduling, editing or rescheduling a message. More reasons can be added in a minor version, so a when on it needs an else branch.

Properties

Link copied to clipboard
open override val isRetryable: Boolean

True only when another edit was saved first (Reason.ScheduledMessageConflict). Every other rejection, including one this SDK does not know, needs a change first, or waits for the server: while the server is sending the message (Reason.ScheduledMessageSending), it ends sent or failed, never editable again.

Link copied to clipboard

The message of the server, which describes the rejection.

Link copied to clipboard

The reason of the rejection, or null when the server gives none this SDK knows.