Skip to main content

ChannelExt

Trait ChannelExt 

Source
pub trait ChannelExt: Identifiable {
Show 26 methods // Required methods fn user(&self) -> Option<&str>; fn active(&self) -> Option<bool>; fn recipients(&self) -> Option<&Vec<String>>; fn last_message_id(&self) -> Option<&str>; fn owner(&self) -> Option<&str>; fn description(&self) -> Option<&str>; fn permissions(&self) -> Option<i64>; fn nsfw(&self) -> Option<bool>; fn default_permissions(&self) -> Option<&OverrideField>; fn role_permissions(&self) -> Option<&HashMap<String, OverrideField>>; fn voice(&self) -> Option<&VoiceInformation>; fn server(&self) -> Option<&str>; fn name(&self) -> Option<&str>; fn icon(&self) -> Option<&File>; fn supports_voice(&self) -> bool; fn mention(&self) -> String; fn with_typing<'life0, 'async_trait, Fut, R>( &'life0 self, events: impl 'async_trait + AsRef<Events> + Send, fut: Fut, ) -> Pin<Box<dyn Future<Output = R> + Send + 'async_trait>> where Fut: 'async_trait + Future<Output = R> + Send, R: 'async_trait, Self: 'async_trait, 'life0: 'async_trait; fn send(&self, http: impl AsRef<HttpClient>) -> SendMessageBuilder; fn fetch_message<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, message_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn fetch_messages( &self, http: impl AsRef<HttpClient>, ) -> FetchMessagesBuilder; fn delete<'life0, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn edit<'life0, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, ) -> Pin<Box<dyn Future<Output = EditChannelBuilder> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_messages<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, options: &'life1 OptionsBulkDelete, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn set_default_permissions<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, data: &'life1 DataDefaultChannelPermissions, ) -> Pin<Box<dyn Future<Output = Result<Channel>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn set_role_permissions<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, role_id: &'life1 str, allow: u64, deny: u64, ) -> Pin<Box<dyn Future<Output = Result<Channel>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn create_webhook<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, data: &'life1 CreateWebhookBody, ) -> Pin<Box<dyn Future<Output = Result<Webhook>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait;
}

Required Methods§

Source

fn user(&self) -> Option<&str>

Source

fn active(&self) -> Option<bool>

Source

fn recipients(&self) -> Option<&Vec<String>>

Source

fn last_message_id(&self) -> Option<&str>

Source

fn owner(&self) -> Option<&str>

Source

fn description(&self) -> Option<&str>

Source

fn permissions(&self) -> Option<i64>

Source

fn nsfw(&self) -> Option<bool>

Source

fn default_permissions(&self) -> Option<&OverrideField>

Source

fn role_permissions(&self) -> Option<&HashMap<String, OverrideField>>

Source

fn voice(&self) -> Option<&VoiceInformation>

Source

fn server(&self) -> Option<&str>

Source

fn name(&self) -> Option<&str>

Source

fn icon(&self) -> Option<&File>

Source

fn supports_voice(&self) -> bool

Source

fn mention(&self) -> String

Source

fn with_typing<'life0, 'async_trait, Fut, R>( &'life0 self, events: impl 'async_trait + AsRef<Events> + Send, fut: Fut, ) -> Pin<Box<dyn Future<Output = R> + Send + 'async_trait>>
where Fut: 'async_trait + Future<Output = R> + Send, R: 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn send(&self, http: impl AsRef<HttpClient>) -> SendMessageBuilder

Source

fn fetch_message<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, message_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn fetch_messages(&self, http: impl AsRef<HttpClient>) -> FetchMessagesBuilder

Source

fn delete<'life0, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn edit<'life0, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, ) -> Pin<Box<dyn Future<Output = EditChannelBuilder> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_messages<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, options: &'life1 OptionsBulkDelete, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn set_default_permissions<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, data: &'life1 DataDefaultChannelPermissions, ) -> Pin<Box<dyn Future<Output = Result<Channel>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn set_role_permissions<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, role_id: &'life1 str, allow: u64, deny: u64, ) -> Pin<Box<dyn Future<Output = Result<Channel>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn create_webhook<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, data: &'life1 CreateWebhookBody, ) -> Pin<Box<dyn Future<Output = Result<Webhook>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§