Nostrum.Api.leave_guild

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

Specs

leave_guild(integer()) :: error() | {:ok}

Leaves a guild.

Guild to leave is specified by guild_id.