preview method

Future<GuildPreview> preview()

Implementation

Future<GuildPreview> preview () async {
  Response response = await ioc.use<HttpService>().get(url: '/guilds/$id/preview');

  return GuildPreview.from(
    guild: this,
    payload: jsonDecode(response.body)
  );
}