#[non_exhaustive]pub struct ForumChannel {Show 17 fields
pub id: ChannelId,
pub guild_id: Option<GuildId>,
pub name: CompactString,
pub position: i32,
pub permission_overwrites: Vec<Overwrite>,
pub parent_id: Option<ChannelId>,
pub nsfw: bool,
pub topic: Option<CompactString>,
pub last_message_id: Option<MessageId>,
pub rate_limit_per_user: u16,
pub default_auto_archive_duration: Option<AutoArchiveDuration>,
pub available_tags: Vec<ForumTag>,
pub default_thread_rate_limit_per_user: Option<u16>,
pub default_reaction_emoji: Option<DefaultReaction>,
pub default_sort_order: Option<SortOrderType>,
pub default_forum_layout: ForumLayoutType,
pub flags: ChannelFlags,
}Expand description
A forum or media channel: it only contains threads (posts).
discord.js counterpart: ForumChannel / MediaChannel.
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.
guild_id: Option<GuildId>The guild; None inside GUILD_CREATE.
name: CompactStringThe channel’s name.
position: i32The sorting position.
permission_overwrites: Vec<Overwrite>Explicit permissions for roles and members.
parent_id: Option<ChannelId>The parent category.
nsfw: boolWhether the channel is age-restricted.
topic: Option<CompactString>The guidelines shown to posters (0-4096 characters).
last_message_id: Option<MessageId>The last thread created (it may not exist any more).
rate_limit_per_user: u16Slowmode for creating posts, in seconds.
default_auto_archive_duration: Option<AutoArchiveDuration>The auto-archive duration copied onto new posts.
The tags posts can have (up to 20).
default_thread_rate_limit_per_user: Option<u16>The slowmode copied onto new posts.
default_reaction_emoji: Option<DefaultReaction>The emoji shown on the add-reaction button of posts.
default_sort_order: Option<SortOrderType>How posts are sorted by default; None when not set.
default_forum_layout: ForumLayoutTypeHow posts are displayed by default (forum channels only).
flags: ChannelFlagsThe channel’s flags.
Trait Implementations§
Source§impl Clone for ForumChannel
impl Clone for ForumChannel
Source§impl Debug for ForumChannel
impl Debug for ForumChannel
impl Eq for ForumChannel
Source§impl PartialEq for ForumChannel
impl PartialEq for ForumChannel
Source§impl Serialize for ForumChannel
impl Serialize for ForumChannel
impl StructuralPartialEq for ForumChannel
Auto Trait Implementations§
impl Freeze for ForumChannel
impl RefUnwindSafe for ForumChannel
impl Send for ForumChannel
impl Sync for ForumChannel
impl Unpin for ForumChannel
impl UnsafeUnpin for ForumChannel
impl UnwindSafe for ForumChannel
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