pub struct CreateGuildVoiceScheduledEvent<'a>(/* private fields */);
Expand description
Create a voice channel scheduled event in a guild.
Implementations§
source§impl<'a> CreateGuildVoiceScheduledEvent<'a>
impl<'a> CreateGuildVoiceScheduledEvent<'a>
sourcepub fn description(self, description: &'a str) -> Result<Self, ValidationError>
pub fn description(self, description: &'a str) -> Result<Self, ValidationError>
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 const fn image(self, image: &'a str) -> Self
pub const 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 const fn scheduled_end_time(self, scheduled_end_time: &'a Timestamp) -> Self
pub const 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 voice channel events.
sourcepub fn exec(self) -> ResponseFuture<GuildScheduledEvent> ⓘ
👎Deprecated since 0.14.0: use .await
or into_future
instead
pub fn exec(self) -> ResponseFuture<GuildScheduledEvent> ⓘ
.await
or into_future
insteadExecute the request, returning a future resolving to a Response
.
Trait Implementations§
source§impl<'a> AuditLogReason<'a> for CreateGuildVoiceScheduledEvent<'a>
impl<'a> AuditLogReason<'a> for CreateGuildVoiceScheduledEvent<'a>
source§impl IntoFuture for CreateGuildVoiceScheduledEvent<'_>
impl IntoFuture for CreateGuildVoiceScheduledEvent<'_>
§type Output = Result<Response<GuildScheduledEvent>, Error>
type Output = Result<Response<GuildScheduledEvent>, Error>
The output that the future will produce on completion.
§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
source§impl TryIntoRequest for CreateGuildVoiceScheduledEvent<'_>
impl TryIntoRequest for CreateGuildVoiceScheduledEvent<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CreateGuildVoiceScheduledEvent<'a>
impl<'a> Send for CreateGuildVoiceScheduledEvent<'a>
impl<'a> Sync for CreateGuildVoiceScheduledEvent<'a>
impl<'a> Unpin for CreateGuildVoiceScheduledEvent<'a>
impl<'a> !UnwindSafe for CreateGuildVoiceScheduledEvent<'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