#[non_exhaustive]pub struct LobbyMessage {Show 13 fields
pub id: MessageId,
pub kind: MessageType,
pub content: CompactString,
pub lobby_id: LobbyId,
pub channel_id: ChannelId,
pub author: User,
pub lobby_member: Option<LobbyMessageMember>,
pub metadata: BTreeMap<CompactString, CompactString>,
pub moderation_metadata: BTreeMap<CompactString, CompactString>,
pub flags: MessageFlags,
pub application_id: Option<ApplicationId>,
pub timestamp: Option<Timestamp>,
pub edited_timestamp: Option<Timestamp>,
}Expand description
A message sent in a lobby (or in a linked channel).
Also the data of the LOBBY_MESSAGE_CREATE and LOBBY_MESSAGE_UPDATE
webhook events, where application_id is optional and updates add
timestamp and edited_timestamp (D-078).
discord.js counterpart: none (lobbies are not in discord.js v14 or discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: MessageIdThe message’s ID.
kind: MessageTypeThe message’s type.
content: CompactStringThe message’s text.
lobby_id: LobbyIdThe lobby it was sent to.
channel_id: ChannelIdEqual to lobby_id, for compatibility with messages.
The author.
lobby_member: Option<LobbyMessageMember>The author’s lobby member data when the message was sent (if they had an additional name).
metadata: BTreeMap<CompactString, CompactString>Key/value pairs delivered with the message to active Social SDK clients.
moderation_metadata: BTreeMap<CompactString, CompactString>Moderation key/value pairs set by the app.
flags: MessageFlagsThe message’s flags.
application_id: Option<ApplicationId>The application that sent the message (always set by the lobby endpoints; in webhook events only during active Social SDK sessions).
timestamp: Option<Timestamp>When the message was sent (sent by LOBBY_MESSAGE_UPDATE webhook events).
edited_timestamp: Option<Timestamp>When the message was last edited (sent by LOBBY_MESSAGE_UPDATE webhook events).