Nostrum.Api.delete_guild

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

Specs

delete_guild(Nostrum.Struct.Guild.id()) :: error() | {:ok}

Deletes a guild.

This endpoint requires that the current user is the owner of the guild. It fires the Nostrum.Consumer.guild_delete/0 event.

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

Examples

Nostrum.Api.delete_guild(81384788765712384)
{:ok}