resolveServer abstract method

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

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

Future<Server> resolveServer({bool force = false});