pub struct EditStageInstance<'a> { /* private fields */ }
Expand description
Edits a StageInstance
.
Implementations§
Source§impl<'a> EditStageInstance<'a>
impl<'a> EditStageInstance<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Equivalent to Self::default
.
Sourcepub fn topic(self, topic: impl Into<String>) -> Self
pub fn topic(self, topic: impl Into<String>) -> Self
Sets the topic of the stage channel instance.
Sourcepub fn privacy_level(self, privacy_level: StageInstancePrivacyLevel) -> Self
pub fn privacy_level(self, privacy_level: StageInstancePrivacyLevel) -> Self
Sets the privacy level of the stage instance
Sourcepub fn audit_log_reason(self, reason: &'a str) -> Self
pub fn audit_log_reason(self, reason: &'a str) -> Self
Sets the request’s audit log reason.
Trait Implementations§
Source§impl Builder for EditStageInstance<'_>
impl Builder for EditStageInstance<'_>
Source§fn execute<'life0, 'async_trait>(
self,
cache_http: impl 'async_trait + CacheHttp,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<Self::Built>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
cache_http: impl 'async_trait + CacheHttp,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<Self::Built>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Edits the stage instance
§Errors
Returns Error::Http
if the channel is not a stage channel, or there is no stage
instance currently.
Source§type Context<'ctx> = ChannelId
type Context<'ctx> = ChannelId
Additional data that’s only required when sending a request off to the API.
type Built = StageInstance
Source§impl<'a> Clone for EditStageInstance<'a>
impl<'a> Clone for EditStageInstance<'a>
Source§fn clone(&self) -> EditStageInstance<'a>
fn clone(&self) -> EditStageInstance<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for EditStageInstance<'a>
impl<'a> Debug for EditStageInstance<'a>
Source§impl<'a> Default for EditStageInstance<'a>
impl<'a> Default for EditStageInstance<'a>
Source§fn default() -> EditStageInstance<'a>
fn default() -> EditStageInstance<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EditStageInstance<'a>
impl<'a> RefUnwindSafe for EditStageInstance<'a>
impl<'a> Send for EditStageInstance<'a>
impl<'a> Sync for EditStageInstance<'a>
impl<'a> Unpin for EditStageInstance<'a>
impl<'a> UnwindSafe for EditStageInstance<'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