ChannelCreateLinkRequest class

Annotations
  • @JsonSerializable.new()

Constructors

ChannelCreateLinkRequest({required ChannelCreateLinkRequestTypeType type, required String name, String? topic, String? url, SnowflakeType? parentId, int? bitrate, int? userLimit, List<ChannelOverwriteRequest>? permissionOverwrites, bool? nsfw, bool? nsfwOverride, ContentWarningLevel? contentWarningLevel, String? contentWarningText})
const
ChannelCreateLinkRequest.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 SnowflakeType?
ID of the parent category for this channel
final
permissionOverwrites List<ChannelOverwriteRequest>?
Permission overwrites for roles and members
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topic String?
The channel topic (1-1024 characters)
final
type ChannelCreateLinkRequestTypeType
final
url String?
External URL for link channels
final
userLimit int?
Maximum users allowed in voice channel (0-99, 0 means unlimited)
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