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
The application ID of the group DM creator if it is bot-created.
-
#bitrate : UInt32 | Nil
The bitrate of the voice channel.
- #default_auto_archive_duration : Servo::Model::ThreadAutoArchiveDuration | Nil
-
#guild_id : Servo::Model::Snowflake | Nil
The ID of the guild this channel is in if any.
-
#icon : String | Nil
The icon hash of the group DM.
-
#last_message_id : Servo::Model::Snowflake | Nil
The ID of the last message sent in this channel.
-
#last_pin_timestamp : Time | Nil
When the last pinned message was pinned.
-
#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
The id of the creator of the group DM or thread.
-
#parent_id : Servo::Model::Snowflake | Nil
The id of the parent category for a channel.
-
#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
The application ID of the group DM creator if it is bot-created.
The ID of the guild this channel is in if any.
This may be missing for some channel objects recieved over gateway guild dispatches.
The ID of the last message sent in this channel.
This may not point to an existing or valid message.
When the last pinned message was pinned.
This may be nil in events such as GUILD_CREATE when a message is not pinned.
Thread member object for the current user, if they have joined the thread.
The id of the parent category for a channel.
If this channel is a thread it is the ID of the text channel this thread was created in.
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.