Nostrum.Api.delete_guild_role

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

delete_guild_role(guild_id, role_id, reason \\ nil)

View Source

Specs

Deletes a role from a guild.

An optional reason can be specified for the audit log.

This endpoint requires the MANAGE_ROLES permission. It fires a Nostrum.Consumer.guild_role_delete/0 event.

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

Examples

Nostrum.Api.delete_guild_role(41771983423143937, 392817238471936)