pub struct UpdateGuildScheduledEvent<'a> { /* private fields */ }
Expand description

Update a scheduled event in a guild.

This endpoint supports changing the type of event. When changing the entity type to either EntityType::StageInstance or EntityType::Voice, an Id<ChannelMarker> must be provided if it does not already exist.

When changing the entity type to EntityType::External, the channel_id field is cleared and the channel_id method has no effect. Additionally, you must set a location with location.

Implementations

Set the channel ID.

If entity_type is already EntityType::External, this has no effect.

Set the description of the event.

Must be between 1 and 1000 characters in length.

Errors

Returns an error of type ScheduledEventDescription if the description is invalid.

Set the EntityType of the scheduled event.

See the struct-level documentation for information about required fields for each type.

Set the location of the external scheduled event.

This only functions if the event’s EntityType is External.

Set the name of the event.

Must be between 1 and 100 characters in length.

Errors

Returns an error of type ScheduledEventName if the name is invalid.

Set the scheduled end time of the event.

Required for external events.

Set the scheduled start time of the event.

Set the status of the event.

If an event is currently Scheduled, it can only be set to Active or Cancelled. If it is currently Active, it can only be set to Completed. Otherwise, the status can not be updated.

Execute the request, returning a future resolving to a Response.

Trait Implementations

Try to convert a request builder into a raw Request. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more