resolvePublicUpdatesChannel method

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

Resolve the server's public updates channel.

final publicUpdatesChannel = await server.channels.resolvePublicUpdatesChannel();

Implementation

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