ServerTextChannel class final

Inheritance

Constructors

ServerTextChannel(ChannelProperties _properties)

Properties

category ServerCategoryChannel?
latefinal
categoryId Snowflake?
no setter
createdAt DateTime
no setteroverride
description String?
no setter
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
no setteroverride
messages ↔ MessageManager<ServerMessage>
latefinal
name String
no setteroverride
permissions List<ChannelPermissionOverwrite>
no setter
position int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverId Snowflake
no setteroverride
threads → ThreadsManager
no setter
type ChannelType
no setteroverride

Methods

cast<T extends Channel>() → T
inherited
delete({String? reason}) Future<void>
Deletes the channel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveServer({bool force = true}) Future<Server>
Resolves the Server the channel belongs to.
inherited
send<T extends Message>(MessageBuilder builder) Future<T>
Sends a message with components to the channel.
sendPoll<T extends Message>(Poll poll) Future<T>
setCategory(String categoryId, {String? reason}) Future<void>
Sets the category of the channel.
setDefaultAutoArchiveDuration(Duration value, {String? reason}) Future<void>
Sets the default auto-archive duration for the channel.
setDefaultThreadRateLimitPerUser(Duration value, {String? reason}) Future<void>
Sets the default thread rate limit per user for the channel.
setDescription(String description, {String? reason}) Future<void>
Sets the description of the channel.
setName(String name, {String? reason}) Future<void>
Sets the name of the channel.
setNsfw(bool nsfw, {String? reason}) Future<void>
Sets the NSFW status of the channel.
setPosition(int position, {String? reason}) Future<void>
Sets the position of the channel.
setRateLimitPerUser(Duration value, {String? reason}) Future<void>
Sets the rate limit per user for the channel.
toString() String
A string representation of this object.
inherited
update(ChannelBuilderContract builder, {String? reason}) Future<void>
Updates the channel.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited