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.
pub fn exec(self) -> ResponseFuture<GuildScheduledEvent>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<GuildScheduledEvent>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for UpdateGuildScheduledEvent<'a>
impl<'a> Send for UpdateGuildScheduledEvent<'a>
impl<'a> Sync for UpdateGuildScheduledEvent<'a>
impl<'a> Unpin for UpdateGuildScheduledEvent<'a>
impl<'a> !UnwindSafe for UpdateGuildScheduledEvent<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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