#[non_exhaustive]pub struct InteractionChannel {Show 16 fields
pub id: ChannelId,
pub kind: ChannelType,
pub name: Option<CompactString>,
pub guild_id: Option<GuildId>,
pub permissions: Option<Permissions>,
pub app_permissions: Option<Permissions>,
pub parent_id: Option<ChannelId>,
pub position: Option<i32>,
pub topic: Option<CompactString>,
pub nsfw: bool,
pub last_message_id: Option<MessageId>,
pub last_pin_timestamp: Option<Timestamp>,
pub rate_limit_per_user: Option<u16>,
pub flags: ChannelFlags,
pub thread_metadata: Option<ThreadMetadata>,
pub recipients: Vec<User>,
}Expand description
The partial channel an interaction was triggered in, or a channel in Resolved data
(D-051): the fields Discord sends there, plus the invoking member’s permissions in it.
discord.js counterpart: the channel of an interaction (Interaction#channel) and the
resolved channels of command options.
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: ChannelIdThe channel’s ID.
kind: ChannelTypeThe channel’s type.
name: Option<CompactString>The channel’s name (absent for DMs).
guild_id: Option<GuildId>The guild, for guild channels.
permissions: Option<Permissions>The invoking member’s permissions in the channel (resolved channels).
app_permissions: Option<Permissions>The app’s permissions in the channel (resolved channels).
parent_id: Option<ChannelId>The parent category, or the parent channel of a thread.
position: Option<i32>The sorting position.
topic: Option<CompactString>The channel’s topic.
nsfw: boolWhether the channel is age-restricted.
last_message_id: Option<MessageId>The last message sent in the channel (may not exist any more).
last_pin_timestamp: Option<Timestamp>When the last message was pinned.
rate_limit_per_user: Option<u16>The slowmode in seconds.
flags: ChannelFlagsThe channel’s flags.
thread_metadata: Option<ThreadMetadata>The thread’s metadata, for threads.
recipients: Vec<User>The recipients of a DM or group DM.