Struct twilight_http::request::guild::auto_moderation::GetAutoModerationRule
source · pub struct GetAutoModerationRule<'a> { /* private fields */ }Expand description
Get an auto moderation rule in a guild.
Requires the MANAGE_GUILD permission.
Implementations§
source§impl<'a> GetAutoModerationRule<'a>
impl<'a> GetAutoModerationRule<'a>
sourcepub fn exec(self) -> ResponseFuture<AutoModerationRule> ⓘ
👎Deprecated since 0.14.0: use .await or into_future instead
pub fn exec(self) -> ResponseFuture<AutoModerationRule> ⓘ
.await or into_future insteadExecute the request, returning a future resolving to a Response.
Trait Implementations§
source§impl IntoFuture for GetAutoModerationRule<'_>
impl IntoFuture for GetAutoModerationRule<'_>
§type Output = Result<Response<AutoModerationRule>, Error>
type Output = Result<Response<AutoModerationRule>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<AutoModerationRule>
type IntoFuture = ResponseFuture<AutoModerationRule>
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