ChannelManager constructor
ChannelManager(
- Map<
Snowflake, ServerChannel> _channels, - Map<
String, dynamic> json
Implementation
ChannelManager(this._channels, Map<String, dynamic> json) {
_namedChannels
..putIfAbsent(
_ServerNamedChannel.afkChannel, () => json['afk_channel_id'])
..putIfAbsent(
_ServerNamedChannel.systemChannel, () => json['system_channel_id'])
..putIfAbsent(
_ServerNamedChannel.rulesChannel, () => json['rules_channel_id'])
..putIfAbsent(_ServerNamedChannel.publicUpdatesChannel,
() => json['public_updates_channel_id'])
..putIfAbsent(_ServerNamedChannel.safetyAlertsChannel,
() => json['safety_alerts_channel_id']);
}