class RawChannel extends DiscordObject with Channel
Represents a guild or DM channel within Discord.
- Alphabetic
- By Inheritance
- RawChannel
- Channel
- DiscordObject
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def applicationId: UndefOr[data.ApplicationId]
Application id of the group DM creator if it is bot-created
Application id of the group DM creator if it is bot-created
- Annotations
- @inline()
- def appliedTags: UndefOr[Seq[data.Snowflake[ForumTag]]]
The IDs of the set of tags that have been applied to a thread in a GUILD_FORUM or a GUILD_MEDIA channel
The IDs of the set of tags that have been applied to a thread in a GUILD_FORUM or a GUILD_MEDIA channel
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asRawChannel: RawChannel
- Definition Classes
- Channel
- def availableTags: UndefOr[Seq[ForumTag]]
The set of tags that can be used in a GUILD_FORUM or a GUILD_MEDIA channel
The set of tags that can be used in a GUILD_FORUM or a GUILD_MEDIA channel
- Annotations
- @inline()
- def bitrate: UndefOr[Int]
The bitrate (in bits) of the voice channel
The bitrate (in bits) of the voice channel
- Annotations
- @inline()
- def cacheCopy: Map[String, Any]
- Definition Classes
- DiscordObject
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def defaultAutoArchiveDuration: UndefOr[Int]
Default duration, copied onto newly created threads, in minutes, threads will stop showing in the channel list after the specified period of inactivity, can be set to: 60, 1440, 4320, 10080
Default duration, copied onto newly created threads, in minutes, threads will stop showing in the channel list after the specified period of inactivity, can be set to: 60, 1440, 4320, 10080
- Annotations
- @inline()
- def defaultForumLayout: UndefOr[ForumLayout]
The default forum layout view used to display posts in GUILD_FORUM channels.
The default forum layout view used to display posts in GUILD_FORUM channels. Defaults to 0, which indicates a layout view has not been set by a channel admin
- Annotations
- @inline()
- def defaultReactionEmoji: JsonOption[DefaultReaction]
The emoji to show in the add reaction button on a thread in a GUILD_FORUM or a GUILD_MEDIA channel
The emoji to show in the add reaction button on a thread in a GUILD_FORUM or a GUILD_MEDIA channel
- Annotations
- @inline()
- def defaultSortOrder: JsonOption[ForumSortOrder]
The default sort order type used to order posts in GUILD_FORUM and GUILD_MEDIA channels.
The default sort order type used to order posts in GUILD_FORUM and GUILD_MEDIA channels. Defaults to null, which indicates a preferred sort order hasn't been set by a channel admin
- Annotations
- @inline()
- def defaultThreadRateLimitPerUser: UndefOr[Int]
The initial rate_limit_per_user to set on newly created threads in a channel.
The initial rate_limit_per_user to set on newly created threads in a channel. this field is copied to the thread at creation time and does not live update.
- Annotations
- @inline()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extensionCache(s: String): Map[String, Any]
- Definition Classes
- DiscordObject
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flags: UndefOr[ChannelFlags]
Channel flags combined as a bitfield
Channel flags combined as a bitfield
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def guildId: UndefOr[data.GuildId]
The id of the guild (may be missing for some channel objects received over gateway guild dispatches)
The id of the guild (may be missing for some channel objects received over gateway guild dispatches)
- Annotations
- @inline()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def icon: JsonOption[data.ImageHash]
Icon hash of the group DM
Icon hash of the group DM
- Annotations
- @inline()
- def id: data.ChannelId
The id of this channel
The id of this channel
- Definition Classes
- RawChannel → Channel
- Annotations
- @inline()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val json: Json
- Definition Classes
- DiscordObject
- def lastMessageId: JsonOption[data.MessageId]
The id of the last message sent in this channel (or thread for GUILD_FORUM and GUILD_MEDIA channels) (may not point to an existing or valid message or thread)
The id of the last message sent in this channel (or thread for GUILD_FORUM and GUILD_MEDIA channels) (may not point to an existing or valid message or thread)
- Annotations
- @inline()
- def lastPinTimestamp: JsonOption[OffsetDateTime]
When the last pinned message was pinned.
When the last pinned message was pinned. This may be null in events such as GUILD_CREATE when a message is not pinned.
- Annotations
- @inline()
- def managed: UndefOr[Boolean]
For group DM channels: whether the channel is managed by an application via the gdm.join OAuth2 scope
For group DM channels: whether the channel is managed by an application via the gdm.join OAuth2 scope
- Annotations
- @inline()
- def member: UndefOr[ThreadMember]
Thread member object for the current user, if they have joined the thread, only included on certain API endpoints
Thread member object for the current user, if they have joined the thread, only included on certain API endpoints
- Annotations
- @inline()
- def memberCount: UndefOr[Int]
An approximate count of users in a thread, stops counting at 50
An approximate count of users in a thread, stops counting at 50
- Annotations
- @inline()
- def messageCount: UndefOr[Int]
Number of messages (not including the initial message or deleted messages) in a thread.
Number of messages (not including the initial message or deleted messages) in a thread.
- Annotations
- @inline()
- def name: JsonOption[String]
The name of the channel (1-100 characters)
The name of the channel (1-100 characters)
- Annotations
- @inline()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def nsfw: UndefOr[Boolean]
Whether the channel is nsfw
Whether the channel is nsfw
- Annotations
- @inline()
- def objWith[A <: DiscordObject, V](companion: DiscordObjectCompanion[A], name: String, obj: V)(implicit encoder: Encoder[V]): A
- Definition Classes
- DiscordObject
- def objWithJson[A <: DiscordObject](companion: DiscordObjectCompanion[A], json: Json, cacheUpdates: Map[String, Any]): A
- Definition Classes
- DiscordObject
- def objWithUndef[A <: DiscordObject, V](companion: DiscordObjectCompanion[A], name: String, obj: JsonOption[V])(implicit encoder: Encoder[V]): A
- Definition Classes
- DiscordObject
- def objWithUndef[A <: DiscordObject, V](companion: DiscordObjectCompanion[A], name: String, obj: UndefOr[V])(implicit encoder: Encoder[V]): A
- Definition Classes
- DiscordObject
- def objWithout[A <: DiscordObject](companion: DiscordObjectCompanion[A], name: String): A
- Definition Classes
- DiscordObject
- def ownerId: UndefOr[data.UserId]
Id of the creator of the group DM or thread
Id of the creator of the group DM or thread
- Annotations
- @inline()
- def parentId: UndefOr[data.GuildChannelId]
For guild channels: id of the parent category for a channel (each parent category can contain up to 50 channels), for threads: id of the text channel this thread was created
For guild channels: id of the parent category for a channel (each parent category can contain up to 50 channels), for threads: id of the text channel this thread was created
- Annotations
- @inline()
- def permissionOverwrites: UndefOr[Seq[PermissionOverwrite]]
Explicit permission overwrites for members and roles
Explicit permission overwrites for members and roles
- Annotations
- @inline()
- def permissions: UndefOr[data.Permissions]
Computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on a slash command interaction.
Computed permissions for the invoking user in the channel, including overwrites, only included when part of the resolved data received on a slash command interaction. This does not include implicit permissions, which may need to be checked separately
- Annotations
- @inline()
- def position: UndefOr[Int]
Sorting position of the channel
Sorting position of the channel
- Annotations
- @inline()
- def rateLimitPerUser: UndefOr[Int]
Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages or manage_channel, are unaffected
Amount of seconds a user has to wait before sending another message (0-21600); bots, as well as users with the permission manage_messages or manage_channel, are unaffected
- Annotations
- @inline()
- def recipients: UndefOr[Seq[User]]
The recipients of the DM
The recipients of the DM
- Annotations
- @inline()
- def retype[A <: DiscordObject](companion: DiscordObjectCompanion[A]): A
- Definition Classes
- DiscordObject
- def rtcRegion: JsonOption[VoiceRegion]
Voice region id for the voice channel, automatic when set to null
Voice region id for the voice channel, automatic when set to null
- Annotations
- @inline()
- def selectDynamic[A](name: String)(implicit decoder: Decoder[A]): A
- Definition Classes
- DiscordObject
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def threadMetadata: UndefOr[ThreadMetadata]
Thread-specific fields not needed by other channels
Thread-specific fields not needed by other channels
- Annotations
- @inline()
- def toString(): String
- Definition Classes
- DiscordObject → AnyRef → Any
- def topic: JsonOption[String]
The channel topic (0-4096 characters for GUILD_FORUM and GUILD_MEDIA channels, 0-1024 characters for all others)
The channel topic (0-4096 characters for GUILD_FORUM and GUILD_MEDIA channels, 0-1024 characters for all others)
- Annotations
- @inline()
- def totalMessageSent: UndefOr[Int]
Number of messages ever sent in a thread, it's similar to message_count on message creation, but will not decrement the number when a message is deleted
Number of messages ever sent in a thread, it's similar to message_count on message creation, but will not decrement the number when a message is deleted
- Annotations
- @inline()
- def tpe: ChannelType
The type of channel
The type of channel
- Annotations
- @inline()
- def userLimit: UndefOr[Int]
The user limit of the voice channel
The user limit of the voice channel
- Annotations
- @inline()
- def values: Seq[() => Any]
- Definition Classes
- RawChannel → DiscordObject
- def videoQualityMode: UndefOr[VideoQualityMode]
The camera video quality mode of the voice channel, 1 when not present
The camera video quality mode of the voice channel, 1 when not present
- Annotations
- @inline()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withApplicationId(newValue: UndefOr[data.ApplicationId]): RawChannel
- Annotations
- @inline()
- def withAppliedTags(newValue: UndefOr[Seq[data.Snowflake[ForumTag]]]): RawChannel
- Annotations
- @inline()
- def withAvailableTags(newValue: UndefOr[Seq[ForumTag]]): RawChannel
- Annotations
- @inline()
- def withBitrate(newValue: UndefOr[Int]): RawChannel
- Annotations
- @inline()
- def withDefaultAutoArchiveDuration(newValue: UndefOr[Int]): RawChannel
- Annotations
- @inline()
- def withDefaultForumLayout(newValue: UndefOr[ForumLayout]): RawChannel
- Annotations
- @inline()
- def withDefaultReactionEmoji(newValue: JsonOption[DefaultReaction]): RawChannel
- Annotations
- @inline()
- def withDefaultSortOrder(newValue: JsonOption[ForumSortOrder]): RawChannel
- Annotations
- @inline()
- def withDefaultThreadRateLimitPerUser(newValue: UndefOr[Int]): RawChannel
- Annotations
- @inline()
- def withFlags(newValue: UndefOr[ChannelFlags]): RawChannel
- Annotations
- @inline()
- def withGuildId(newValue: UndefOr[data.GuildId]): RawChannel
- Annotations
- @inline()
- def withIcon(newValue: JsonOption[data.ImageHash]): RawChannel
- Annotations
- @inline()
- def withId(newValue: data.ChannelId): RawChannel
- Annotations
- @inline()
- def withLastMessageId(newValue: JsonOption[data.MessageId]): RawChannel
- Annotations
- @inline()
- def withLastPinTimestamp(newValue: JsonOption[OffsetDateTime]): RawChannel
- Annotations
- @inline()
- def withManaged(newValue: UndefOr[Boolean]): RawChannel
- Annotations
- @inline()
- def withMember(newValue: UndefOr[ThreadMember]): RawChannel
- Annotations
- @inline()
- def withMemberCount(newValue: UndefOr[Int]): RawChannel
- Annotations
- @inline()
- def withMessageCount(newValue: UndefOr[Int]): RawChannel
- Annotations
- @inline()
- def withName(newValue: JsonOption[String]): RawChannel
- Annotations
- @inline()
- def withNsfw(newValue: UndefOr[Boolean]): RawChannel
- Annotations
- @inline()
- def withOwnerId(newValue: UndefOr[data.UserId]): RawChannel
- Annotations
- @inline()
- def withParentId(newValue: UndefOr[data.GuildChannelId]): RawChannel
- Annotations
- @inline()
- def withPermissionOverwrites(newValue: UndefOr[Seq[PermissionOverwrite]]): RawChannel
- Annotations
- @inline()
- def withPermissions(newValue: UndefOr[data.Permissions]): RawChannel
- Annotations
- @inline()
- def withPosition(newValue: UndefOr[Int]): RawChannel
- Annotations
- @inline()
- def withRateLimitPerUser(newValue: UndefOr[Int]): RawChannel
- Annotations
- @inline()
- def withRecipients(newValue: UndefOr[Seq[User]]): RawChannel
- Annotations
- @inline()
- def withRtcRegion(newValue: JsonOption[VoiceRegion]): RawChannel
- Annotations
- @inline()
- def withThreadMetadata(newValue: UndefOr[ThreadMetadata]): RawChannel
- Annotations
- @inline()
- def withTopic(newValue: JsonOption[String]): RawChannel
- Annotations
- @inline()
- def withTotalMessageSent(newValue: UndefOr[Int]): RawChannel
- Annotations
- @inline()
- def withTpe(newValue: ChannelType): RawChannel
- Annotations
- @inline()
- def withUserLimit(newValue: UndefOr[Int]): RawChannel
- Annotations
- @inline()
- def withVideoQualityMode(newValue: UndefOr[VideoQualityMode]): RawChannel
- Annotations
- @inline()