pub struct CreateGuildVoiceScheduledEvent<'a>(_);
Expand description
Create a voice channel scheduled event in a guild.
Implementations
sourceimpl<'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>ⓘ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>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl<'a> AuditLogReason<'a> for CreateGuildVoiceScheduledEvent<'a>
impl<'a> AuditLogReason<'a> for CreateGuildVoiceScheduledEvent<'a>
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more