pub struct ChannelMessagesView { /* private fields */ }Expand description
A view for managing a channel’s messages.
Implementations§
Source§impl ChannelMessagesView
impl ChannelMessagesView
Sourcepub fn get_all(&self) -> impl Future<Item = Vec<Message>, Error = Error>
pub fn get_all(&self) -> impl Future<Item = Vec<Message>, Error = Error>
Fetches all messages in this channel.
Sourcepub fn get(&self, mid: &Snowflake) -> impl Future<Item = Message, Error = Error>
pub fn get(&self, mid: &Snowflake) -> impl Future<Item = Message, Error = Error>
Gets a single message in this channel, with the provided ID.
Sourcepub fn delete(
&self,
mid: Snowflake,
) -> impl Future<Item = Message, Error = Error>
pub fn delete( &self, mid: Snowflake, ) -> impl Future<Item = Message, Error = Error>
Deletes a message from this channel.
Sourcepub fn bulk_delete(
&self,
ids: Vec<Snowflake>,
) -> impl Future<Item = (), Error = Error>
pub fn bulk_delete( &self, ids: Vec<Snowflake>, ) -> impl Future<Item = (), Error = Error>
Deletes multiple messages in one request for a single channel.
Sourcepub fn reactions(&self, mid: Snowflake) -> ChannelMessageReactionsView
pub fn reactions(&self, mid: Snowflake) -> ChannelMessageReactionsView
A view for managing a message’s reactions.
Auto Trait Implementations§
impl Freeze for ChannelMessagesView
impl !RefUnwindSafe for ChannelMessagesView
impl Send for ChannelMessagesView
impl Sync for ChannelMessagesView
impl Unpin for ChannelMessagesView
impl !UnwindSafe for ChannelMessagesView
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more