Nostrum.Api.get_current_user_guilds

You're seeing just the function get_current_user_guilds, go back to Nostrum.Api module for more information.
Link to this function

get_current_user_guilds(options \\ [])

View Source

Specs

get_current_user_guilds(options()) ::
  error() | {:ok, [Nostrum.Struct.Guild.user_guild()]}

Gets a list of guilds the user is currently in.

This endpoint requires the guilds OAuth2 scope.

If successful, returns {:ok, guilds}. Otherwise, returns a Nostrum.Api.error/0.

Options

Examples

iex> Nostrum.Api.get_current_user_guilds(limit: 1)
{:ok, [%Nostrum.Struct.Guild{}]}