resolveServer method
Resolve the server where the message was sent.
final server = await message.resolveServer();
This will return a Server object.
If the server is not cached, you can force the fetch by passing force: true
.
final server = await message.resolveServer(force: true);
Implementation
@override
Future<Server> resolveServer({bool force = false}) =>
_datastore.server.get(serverId!.value, force);