#[non_exhaustive]pub struct DmChannel {
pub id: ChannelId,
pub last_message_id: Option<MessageId>,
pub recipients: Vec<User>,
pub last_pin_timestamp: Option<Timestamp>,
pub flags: ChannelFlags,
}Expand description
A direct message between the current user and one other user.
discord.js counterpart: DMChannel.
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.id: ChannelIdThe channel’s ID.
last_message_id: Option<MessageId>The last message sent (it may not exist any more).
recipients: Vec<User>The other user(s) of the DM.
last_pin_timestamp: Option<Timestamp>When the last message was pinned.
flags: ChannelFlagsThe channel’s flags.
Trait Implementations§
impl Eq for DmChannel
impl StructuralPartialEq for DmChannel
Auto Trait Implementations§
impl Forget for DmChannel
impl Freeze for DmChannel
impl Move for DmChannel
impl RefUnwindSafe for DmChannel
impl Send for DmChannel
impl Sync for DmChannel
impl Unpin for DmChannel
impl UnsafeUnpin for DmChannel
impl UnwindSafe for DmChannel
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