listGuilds abstract method

  1. @GET.new('/users/@me/guilds')
Future<List<GuildResponse>> listGuilds({
  1. @Query.new('before') SnowflakeType? before,
  2. @Query.new('after') SnowflakeType? after,
  3. @Query.new('limit') int? limit,
  4. @Query.new('with_counts') String? withCounts,
})

List current user guilds.

Requires guilds OAuth scope if using bearer token. Returns all guilds the user is a member of.

Implementation

@GET('/users/@me/guilds')
Future<List<GuildResponse>> listGuilds({
  @Query('before') SnowflakeType? before,
  @Query('after') SnowflakeType? after,
  @Query('limit') int? limit,
  @Query('with_counts') String? withCounts,
});