#[non_exhaustive]pub struct GetChannelMessages {
pub around: Option<MessageId>,
pub before: Option<MessageId>,
pub after: Option<MessageId>,
pub limit: Option<u8>,
}Expand description
The query of Get Channel Messages
(GET /channels/{channel.id}/messages). Messages are returned newest first.
around, before and after are mutually exclusive: set at most one.
discord.js counterpart: FetchMessagesOptions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.around: Option<MessageId>Messages around this message.
before: Option<MessageId>Messages before this message.
after: Option<MessageId>Messages after this message.
limit: Option<u8>How many messages (1-100; Discord’s default is 50).
Trait Implementations§
Source§impl Clone for GetChannelMessages
impl Clone for GetChannelMessages
impl Copy for GetChannelMessages
Source§impl Debug for GetChannelMessages
impl Debug for GetChannelMessages
Source§impl Default for GetChannelMessages
impl Default for GetChannelMessages
impl Eq for GetChannelMessages
Source§impl Hash for GetChannelMessages
impl Hash for GetChannelMessages
Source§impl PartialEq for GetChannelMessages
impl PartialEq for GetChannelMessages
impl StructuralPartialEq for GetChannelMessages
Auto Trait Implementations§
impl Forget for GetChannelMessages
impl Freeze for GetChannelMessages
impl Move for GetChannelMessages
impl RefUnwindSafe for GetChannelMessages
impl Send for GetChannelMessages
impl Sync for GetChannelMessages
impl Unpin for GetChannelMessages
impl UnsafeUnpin for GetChannelMessages
impl UnwindSafe for GetChannelMessages
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