c

ackcord.data.raw

RawChannel

case class RawChannel(id: ChannelId, type: ChannelType, guildId: Option[GuildId], position: Option[Int], permissionOverwrites: Option[Seq[PermissionOverwrite]], name: Option[String], topic: Option[String], nsfw: Option[Boolean], lastMessageId: Option[MessageId], bitrate: Option[Int], userLimit: Option[Int], rateLimitPerUser: Option[Int], recipients: Option[Seq[User]], icon: Option[String], ownerId: Option[UserId], applicationId: Option[ApplicationId], parentId: Option[GuildChannelId], lastPinTimestamp: Option[OffsetDateTime], rtcRegion: Option[String], videoQualityMode: Option[VideoQualityMode], messageCount: Option[Int], memberCount: Option[Int], threadMetadata: Option[RawThreadMetadata], member: Option[RawThreadMember], defaultAutoArchiveDuration: Option[Int]) extends Product with Serializable

A raw channel before going through the cache.

id

The channel id.

guildId

The guildId this channel belongs to if it's a guild channel.

position

The position of this channel if it's a guild channel.

permissionOverwrites

The permission overwrites of this channel if it's a guild channel.

name

The name of this channel if it's a guild channel.

topic

The topic of this channel if it's a guild voice channel.

nsfw

If this channel is NSFW if it's a guild channel.

lastMessageId

The last message id if it's a text channel. The id may be invalid.

bitrate

The bitrate of this channel if it's a guild voice channel.

userLimit

The user limit of this channel if it's a guild voice channel.

rateLimitPerUser

The amount of time a user has to wait before sending messages after each other. Bots are not affected.

recipients

The recipients of this channel if it's a group DM channel.

icon

The icon of this channel if it has one.

ownerId

The owner of this channel if it's a DM or group DM channel.

applicationId

The application id of this channel if it's a guild channel.

parentId

The category of this channel if it's a guild channel.

rtcRegion

Channel region to use. Automatic if none.

messageCount

Approximate amount of messages in a thread. Stops at 50.

memberCount

Approximate amount of members in a thread. Stops at 50.

threadMetadata

Thread specific data.

member

Info about the current member for a thread.

defaultAutoArchiveDuration

The default for when a newly created thread is auto archived in minutes.

Source
rawData.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RawChannel
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RawChannel(id: ChannelId, type: ChannelType, guildId: Option[GuildId], position: Option[Int], permissionOverwrites: Option[Seq[PermissionOverwrite]], name: Option[String], topic: Option[String], nsfw: Option[Boolean], lastMessageId: Option[MessageId], bitrate: Option[Int], userLimit: Option[Int], rateLimitPerUser: Option[Int], recipients: Option[Seq[User]], icon: Option[String], ownerId: Option[UserId], applicationId: Option[ApplicationId], parentId: Option[GuildChannelId], lastPinTimestamp: Option[OffsetDateTime], rtcRegion: Option[String], videoQualityMode: Option[VideoQualityMode], messageCount: Option[Int], memberCount: Option[Int], threadMetadata: Option[RawThreadMetadata], member: Option[RawThreadMember], defaultAutoArchiveDuration: Option[Int])

    id

    The channel id.

    guildId

    The guildId this channel belongs to if it's a guild channel.

    position

    The position of this channel if it's a guild channel.

    permissionOverwrites

    The permission overwrites of this channel if it's a guild channel.

    name

    The name of this channel if it's a guild channel.

    topic

    The topic of this channel if it's a guild voice channel.

    nsfw

    If this channel is NSFW if it's a guild channel.

    lastMessageId

    The last message id if it's a text channel. The id may be invalid.

    bitrate

    The bitrate of this channel if it's a guild voice channel.

    userLimit

    The user limit of this channel if it's a guild voice channel.

    rateLimitPerUser

    The amount of time a user has to wait before sending messages after each other. Bots are not affected.

    recipients

    The recipients of this channel if it's a group DM channel.

    icon

    The icon of this channel if it has one.

    ownerId

    The owner of this channel if it's a DM or group DM channel.

    applicationId

    The application id of this channel if it's a guild channel.

    parentId

    The category of this channel if it's a guild channel.

    rtcRegion

    Channel region to use. Automatic if none.

    messageCount

    Approximate amount of messages in a thread. Stops at 50.

    memberCount

    Approximate amount of members in a thread. Stops at 50.

    threadMetadata

    Thread specific data.

    member

    Info about the current member for a thread.

    defaultAutoArchiveDuration

    The default for when a newly created thread is auto archived in minutes.

Value Members

  1. val applicationId: Option[ApplicationId]
  2. val bitrate: Option[Int]
  3. val defaultAutoArchiveDuration: Option[Int]
  4. val guildId: Option[GuildId]
  5. val icon: Option[String]
  6. val id: ChannelId
  7. val lastMessageId: Option[MessageId]
  8. val lastPinTimestamp: Option[OffsetDateTime]
  9. val member: Option[RawThreadMember]
  10. val memberCount: Option[Int]
  11. val messageCount: Option[Int]
  12. val name: Option[String]
  13. val nsfw: Option[Boolean]
  14. val ownerId: Option[UserId]
  15. val parentId: Option[GuildChannelId]
  16. val permissionOverwrites: Option[Seq[PermissionOverwrite]]
  17. val position: Option[Int]
  18. def productElementNames: Iterator[String]
    Definition Classes
    Product
  19. val rateLimitPerUser: Option[Int]
  20. val recipients: Option[Seq[User]]
  21. val rtcRegion: Option[String]
  22. val threadMetadata: Option[RawThreadMetadata]
  23. def toChannel(botUserId: Option[UserId]): Option[Channel]

    Try to convert this to a normal channel.

  24. def toGuildChannel(guildId: GuildId, botUserId: Option[UserId]): Option[GuildChannel]
  25. val topic: Option[String]
  26. val type: ChannelType
  27. val userLimit: Option[Int]
  28. val videoQualityMode: Option[VideoQualityMode]