ExecuteWebhookExt

Trait ExecuteWebhookExt 

Source
pub trait ExecuteWebhookExt {
    // Required method
    fn in_channel(self, channel: &Channel) -> Self;
}
Expand description

Utility functions to execute webhooks

Required Methods§

Source

fn in_channel(self, channel: &Channel) -> Self

If the channel is a thread channel, execute the webhook in it

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ExecuteWebhookExt for ExecuteWebhook<'_>

Source§

fn in_channel(self, channel: &Channel) -> Self

Implementors§