Struct twilight_http::request::guild::UpdateGuildWidgetSettings
source · pub struct UpdateGuildWidgetSettings<'a> { /* private fields */ }Expand description
Modify a guild’s widget settings.
Implementations§
source§impl<'a> UpdateGuildWidgetSettings<'a>
impl<'a> UpdateGuildWidgetSettings<'a>
sourcepub const fn channel_id(self, channel_id: Option<Id<ChannelMarker>>) -> Self
pub const fn channel_id(self, channel_id: Option<Id<ChannelMarker>>) -> Self
Set which channel to display on the widget.
sourcepub fn exec(self) -> ResponseFuture<GuildWidgetSettings> ⓘ
👎Deprecated since 0.14.0: use .await or into_future instead
pub fn exec(self) -> ResponseFuture<GuildWidgetSettings> ⓘ
.await or into_future insteadExecute the request, returning a future resolving to a Response.
Trait Implementations§
source§impl<'a> AuditLogReason<'a> for UpdateGuildWidgetSettings<'a>
impl<'a> AuditLogReason<'a> for UpdateGuildWidgetSettings<'a>
source§impl IntoFuture for UpdateGuildWidgetSettings<'_>
impl IntoFuture for UpdateGuildWidgetSettings<'_>
§type Output = Result<Response<GuildWidgetSettings>, Error>
type Output = Result<Response<GuildWidgetSettings>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<GuildWidgetSettings>
type IntoFuture = ResponseFuture<GuildWidgetSettings>
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