pub struct ThreadUpdate(pub Channel);Expand description
The data of the Thread Update
dispatch event (not sent for last_message_id changes).
discord.js counterpart: the ThreadUpdate event.
Dereferences to the contained Channel.
Tuple Fields§
§0: ChannelMethods from Deref<Target = Channel>§
Sourcepub fn kind(&self) -> ChannelType
pub fn kind(&self) -> ChannelType
The kind of channel.
discord.js counterpart: BaseChannel#type.
Sourcepub fn guild_id(&self) -> Option<GuildId>
pub fn guild_id(&self) -> Option<GuildId>
The guild the channel belongs to. None for DMs, and for guild channels inside
GUILD_CREATE (where Discord omits it).
discord.js counterpart: GuildChannel#guildId.
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The channel’s name. None for DMs and unnamed group DMs.
discord.js counterpart: GuildChannel#name.
Sourcepub fn parent_id(&self) -> Option<ChannelId>
pub fn parent_id(&self) -> Option<ChannelId>
The parent: the category of a guild channel, or the channel a thread was created in.
discord.js counterpart: GuildChannel#parentId.
Sourcepub fn flags(&self) -> ChannelFlags
pub fn flags(&self) -> ChannelFlags
The channel’s flags.
discord.js counterpart: BaseChannel#flags.
Sourcepub fn permission_overwrites(&self) -> &[Overwrite]
pub fn permission_overwrites(&self) -> &[Overwrite]
The permission overwrites of a guild channel; empty for DMs and threads.
discord.js counterpart: GuildChannel#permissionOverwrites.
Sourcepub fn as_thread(&self) -> Option<&ThreadChannel>
pub fn as_thread(&self) -> Option<&ThreadChannel>
Returns the thread data if this channel is a thread.
discord.js counterpart: BaseChannel#isThread.