ChannelResponse class
- Annotations
-
- @JsonSerializable.new()
Constructors
-
ChannelResponse({required String id, required int type, SnowflakeType? guildId, String? name, String? topic, String? url, String? icon, SnowflakeType? ownerId, Int32Type? position, SnowflakeType? parentId, Int32Type? bitrate, Int32Type? userLimit, String? rtcRegion, SnowflakeType? lastMessageId, DateTime? lastPinTimestamp, List<
ChannelOverwriteResponse> ? permissionOverwrites, List<UserPartialResponse> ? recipients, bool? nsfw, bool? nsfwOverride, ContentWarningLevel? contentWarningLevel, String? contentWarningText, Int32Type? rateLimitPerUser, Map<String, String> ? nicks}) -
const
-
ChannelResponse.fromJson(Map<
String, Object?> json) -
factory
Properties
- bitrate → Int32Type?
-
The bitrate of the voice channel in bits per second
final
- contentWarningLevel → ContentWarningLevel?
-
final
- contentWarningText → String?
-
Custom channel content warning text (max 200 characters); null inherits from parent or guild
final
- guildId → SnowflakeType?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String?
-
The icon hash of the channel (for group DMs)
final
- id → String
-
The unique identifier (snowflake) for this channel
final
- lastMessageId → SnowflakeType?
-
The ID of the last message sent in this channel
final
- lastPinTimestamp → DateTime?
-
The ISO 8601 timestamp of when the last pinned message was pinned
final
- name → String?
-
The name of the channel
final
-
nicks
→ Map<
String, String> ? -
Custom nicknames for users in this channel (for group DMs)
final
- nsfw → bool?
-
Whether the channel is marked as NSFW (effective value, walking channel → category → guild)
final
- nsfwOverride → bool?
-
Per-channel adult-content override; null means inherit from parent category and then guild. Categories use this same field as their own override.
final
- ownerId → SnowflakeType?
-
The ID of the owner of the channel (for group DMs)
final
- parentId → SnowflakeType?
-
The ID of the parent category for this channel
final
-
permissionOverwrites
→ List<
ChannelOverwriteResponse> ? -
The permission overwrites for this channel
final
- position → Int32Type?
-
final
- rateLimitPerUser → Int32Type?
-
final
-
recipients
→ List<
UserPartialResponse> ? -
The recipients of the DM channel
final
- rtcRegion → String?
-
The voice region ID for the voice channel
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topic → String?
-
The topic of the channel
final
- type → int
-
The type of the channel
final
- url → String?
-
The URL associated with the channel
final
- userLimit → Int32Type?
-
The maximum number of users allowed in the voice channel
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited