preview method

Future<GuildPreview> preview()

Get Guild as EmbedBuilder format.

Implementation

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

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