GuildTextChannelCreateRequest class

Annotations
  • @JsonSerializable.new()

Constructors

GuildTextChannelCreateRequest({required GuildTextChannelCreateRequestTypeType type, required String name, String? topic, String? url, SnowflakeType? parentId, int? bitrate, int? userLimit, int? voiceConnectionLimit, List<GuildTextChannelCreateRequestPermissionOverwrites>? permissionOverwrites, int? rateLimitPerUser, bool? nsfw, bool? nsfwOverride, ContentWarningLevel? contentWarningLevel, String? contentWarningText})
const
GuildTextChannelCreateRequest.fromJson(Map<String, Object?> json)
factory

Properties

bitrate → int?
Voice channel bitrate in bits per second (8000-320000)
final
contentWarningLevel → ContentWarningLevel?
final
contentWarningText → String?
Custom channel content warning text (max 200 characters); null inherits from parent or guild
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of the channel
final
nsfw → bool?
Whether the channel is marked as NSFW
final
nsfwOverride → bool?
Per-channel adult-content override (true=on, false=off, null=inherit from category then guild). Takes precedence over the legacy nsfw field if both are present.
final
parentId → String?
ID of the parent category for this channel
final
permissionOverwrites → List<GuildTextChannelCreateRequestPermissionOverwrites>?
Permission overwrites for roles and members
final
rateLimitPerUser → int?
Slowmode delay in seconds (0-21600)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
topic → String?
The channel topic (1-1024 characters)
final
type → GuildTextChannelCreateRequestTypeType
final
url → String?
External URL for link channels
final
userLimit → int?
Maximum users allowed in voice channel (0-99, 0 means unlimited)
final
voiceConnectionLimit → int?
Maximum active voice connections allowed per user in a voice channel (1-100)
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