pub struct CreateStageInstance<'a> { /* private fields */ }
Expand description
Create a new stage instance associated with a stage channel.
Requires the user to be a moderator of the stage channel.
Implementations§
source§impl<'a> CreateStageInstance<'a>
impl<'a> CreateStageInstance<'a>
sourcepub fn guild_scheduled_event_id(
self,
guild_scheduled_event_id: Id<ScheduledEventMarker>,
) -> Self
pub fn guild_scheduled_event_id( self, guild_scheduled_event_id: Id<ScheduledEventMarker>, ) -> Self
Set the guild scheduled event associated with this stage instance.
sourcepub fn privacy_level(self, privacy_level: PrivacyLevel) -> Self
pub fn privacy_level(self, privacy_level: PrivacyLevel) -> Self
Set the PrivacyLevel
of the instance.
sourcepub fn send_start_notification(self, send_start_notification: bool) -> Self
pub fn send_start_notification(self, send_start_notification: bool) -> Self
Set whether to notify everyone when a stage starts.
The stage moderator must have Permissions::MENTION_EVERYONE
for this
notification to be sent.
Trait Implementations§
source§impl IntoFuture for CreateStageInstance<'_>
impl IntoFuture for CreateStageInstance<'_>
source§type Output = Result<Response<StageInstance>, Error>
type Output = Result<Response<StageInstance>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<StageInstance>
type IntoFuture = ResponseFuture<StageInstance>
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 CreateStageInstance<'_>
impl TryIntoRequest for CreateStageInstance<'_>
Auto Trait Implementations§
impl<'a> Freeze for CreateStageInstance<'a>
impl<'a> !RefUnwindSafe for CreateStageInstance<'a>
impl<'a> Send for CreateStageInstance<'a>
impl<'a> Sync for CreateStageInstance<'a>
impl<'a> Unpin for CreateStageInstance<'a>
impl<'a> !UnwindSafe for CreateStageInstance<'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