ChannelManager<C extends Channel> class final

Constructors

ChannelManager(Snowflake _serverId, {required Snowflake? afkChannelId, required Snowflake? systemChannelId, required Snowflake? rulesChannelId, required Snowflake? publicUpdatesChannelId, required Snowflake? safetyAlertsChannelId})
ChannelManager.empty(String serverId)
factory
ChannelManager.fromMap(Object serverId, Map<String, dynamic> payload)
factory

Properties

afkChannelId Snowflake?
final
hashCode int
The hash code for this object.
no setterinherited
publicUpdatesChannelId Snowflake?
final
rulesChannelId Snowflake?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safetyAlertsChannelId Snowflake?
final
systemChannelId Snowflake?
final

Methods

create<T extends C>(ChannelBuilderContract builder, {String? reason}) Future<T>
Create a channel.
fetch({bool force = false}) Future<Map<Snowflake, C>>
Fetch the server's channels.
get<T extends C>(String id, {bool force = false}) Future<T?>
Get a channel by its id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveAfkChannel({bool force = false}) Future<ServerVoiceChannel?>
Resolve the server's afk channel.
resolvePublicUpdatesChannel({bool force = false}) Future<ServerTextChannel?>
Resolve the server's public updates channel.
resolveRulesChannel({bool force = false}) Future<ServerTextChannel?>
Resolve the server's rules channel.
resolveSafetyAlertsChannel({bool force = false}) Future<ServerTextChannel?>
Resolve the server's safety alerts channel.
resolveSystemChannel({bool force = false}) Future<ServerTextChannel?>
Resolve the server's system channel.
setAfkChannel(String? channelId, {String? reason}) Future<void>
Set the server's afk channel.
setPublicUpdatesChannel(String? channelId, {String? reason}) Future<void>
Set the server's public updates channel.
setRulesChannel(String? channelId, {String? reason}) Future<void>
Set the server's rules channel.
setSystemChannel(String? channelId, {String? reason}) Future<void>
Set the server's system channel.
toString() String
A string representation of this object.
inherited

Operators

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