#[non_exhaustive]pub struct GroupDmChannel {
pub id: ChannelId,
pub name: Option<CompactString>,
pub icon: Option<ImageHash>,
pub recipients: Vec<User>,
pub owner_id: UserId,
pub application_id: Option<ApplicationId>,
pub managed: bool,
pub last_message_id: Option<MessageId>,
pub last_pin_timestamp: Option<Timestamp>,
pub flags: ChannelFlags,
}Expand description
A direct message between several users.
discord.js counterpart: PartialGroupDMChannel.
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.
name: Option<CompactString>The group’s name.
icon: Option<ImageHash>The group icon hash.
recipients: Vec<User>The users in the group.
owner_id: UserIdWho created the group.
application_id: Option<ApplicationId>The application that created the group, if any.
managed: boolWhether an application manages the group through the gdm.join scope.
last_message_id: Option<MessageId>The last message sent (it may not exist any more).
last_pin_timestamp: Option<Timestamp>When the last message was pinned.
flags: ChannelFlagsThe channel’s flags.
Trait Implementations§
Source§impl Clone for GroupDmChannel
impl Clone for GroupDmChannel
Source§impl Debug for GroupDmChannel
impl Debug for GroupDmChannel
impl Eq for GroupDmChannel
Source§impl PartialEq for GroupDmChannel
impl PartialEq for GroupDmChannel
Source§impl Serialize for GroupDmChannel
impl Serialize for GroupDmChannel
impl StructuralPartialEq for GroupDmChannel
Auto Trait Implementations§
impl Forget for GroupDmChannel
impl Freeze for GroupDmChannel
impl Move for GroupDmChannel
impl RefUnwindSafe for GroupDmChannel
impl Send for GroupDmChannel
impl Sync for GroupDmChannel
impl Unpin for GroupDmChannel
impl UnsafeUnpin for GroupDmChannel
impl UnwindSafe for GroupDmChannel
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