resolveServer method

Future<Server?> resolveServer({
  1. bool force = false,
})

Resolves the server where the typing occurred.

Example:

client.events.typing((Typing typing) async {
  final server = await typing.resolveServer();
  print('Someone is typing in ${server?.name}');
});

Parameters:

  • force Whether to force fetch the server from the API instead of cache. Defaults to false.

Implementation

Future<Server?> resolveServer({bool force = false}) {
  return _datastore.server.get(serverId!.value, force);
}