pub struct CreateGuildStageInstanceScheduledEvent<'a>(/* private fields */);
Expand description
Create a stage instance scheduled event in a guild.
Implementations§
source§impl<'a> CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> CreateGuildStageInstanceScheduledEvent<'a>
sourcepub fn description(self, description: &'a str) -> Self
pub fn description(self, description: &'a str) -> Self
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.
sourcepub fn image(self, image: &'a str) -> Self
pub fn image(self, image: &'a str) -> Self
Set the cover image of the event.
This must be a Data URI, in the form of
data:image/{type};base64,{data}
where {type}
is the image MIME type
and {data}
is the base64-encoded image. See Discord Docs/Image Data.
sourcepub fn scheduled_end_time(self, scheduled_end_time: &'a Timestamp) -> Self
pub fn scheduled_end_time(self, scheduled_end_time: &'a Timestamp) -> Self
Set the scheduled end time of the event.
This is not a required field for stage instance events.
Trait Implementations§
source§impl<'a> AuditLogReason<'a> for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> AuditLogReason<'a> for CreateGuildStageInstanceScheduledEvent<'a>
source§impl IntoFuture for CreateGuildStageInstanceScheduledEvent<'_>
impl IntoFuture for CreateGuildStageInstanceScheduledEvent<'_>
source§type Output = Result<Response<GuildScheduledEvent>, Error>
type Output = Result<Response<GuildScheduledEvent>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<GuildScheduledEvent>
type IntoFuture = ResponseFuture<GuildScheduledEvent>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> !RefUnwindSafe for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Send for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Sync for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> Unpin for CreateGuildStageInstanceScheduledEvent<'a>
impl<'a> !UnwindSafe for CreateGuildStageInstanceScheduledEvent<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more