struct Servo::Model::Channel
- Servo::Model::Channel
- Struct
- Value
- Object
Overview
Represents a Channel.
Included Modules
- JSON::Serializable
- Servo::Model::Identifiable
Defined in:
model/channel/channel.crConstructors
Instance Method Summary
- #application_id : Servo::Model::Snowflake | Nil
-
#bitrate : UInt32 | Nil
The bitrate of the voice channel.
- #default_auto_archive_duration : Servo::Model::ThreadAutoArchiveDuration | Nil
- #guild_id : Servo::Model::Snowflake | Nil
-
#icon : String | Nil
The icon hash of the group DM.
- #last_message_id : Servo::Model::Snowflake | Nil
- #last_pin_timestamp : Time | Nil
-
#member : Servo::Model::ThreadMember | Nil
Thread member object for the current user, if they have joined the thread.
-
#member_count : UInt8 | Nil
An approximate count of users in a thread, stops at 50.
-
#message_count : UInt8 | Nil
An approximate count of messages in a thread, stops at 50.
-
#name : String | Nil
The name of this channel.
-
#nsfw : Bool | Nil
Whether the channel is NSFW.
- #owner_id : Servo::Model::Snowflake | Nil
- #parent_id : Servo::Model::Snowflake | Nil
-
#permission_overwrites : Array(Servo::Model::PermissionOverwrite) | Nil
Array of explicit
Servo::Model::PermissionOverwrite
for members and roles. - #permissions : Servo::Model::Permissions | Nil
-
#position : Int32 | Nil
The sorting position of the channel.
-
#rate_limit_per_user : UInt32 | Nil
The amount of seconds a user has to wait before sending another message.
-
#recipients : Array(Servo::Model::User) | Nil
The recipients of the DM.
-
#rtc_region : String | Nil
Voice Region ID for the voice channel.
-
#thread_metadata : Servo::Model::ThreadMetadata | Nil
Thread specific fields not needed by other channels.
-
#topic : String | Nil
The channel topic.
-
#type : ChannelType
The type of this channel.
-
#user_limit : UInt32 | Nil
The user limit of the voice channel.
-
#video_quality_mode : VideoQualityMode | Nil
The camera video quality mode of the voice channel.
Instance methods inherited from module Servo::Model::Identifiable
created_at : Time
created_at,
id : Servo::Model::Snowflake
id
Constructor Detail
Instance Method Detail
Thread member object for the current user, if they have joined the thread.
Array of explicit Servo::Model::PermissionOverwrite
for members and roles.
The amount of seconds a user has to wait before sending another message.
This value must between 0 and 21600. Bots as well as users with MANAGE_MESSAGES, or MANAGE_CHANNEL permissions are unnaffected.
Thread specific fields not needed by other channels.
The camera video quality mode of the voice channel.
Automatic when set to nil.