resolveSystemChannel method

Future<ServerTextChannel?> resolveSystemChannel({
  1. bool force = false,
})

Resolve the server's system channel.

final systemChannel = await server.channels.resolveSystemChannel();

Implementation

Future<ServerTextChannel?> resolveSystemChannel({bool force = false}) async {
  return switch (systemChannelId) {
    Snowflake(:final value) => _datastore.channel.get<ServerTextChannel>(value, force),
    _ => null,
  };
}