Nostrum.Api.add_guild_member_role

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

add_guild_member_role(guild_id, user_id, role_id, reason \\ nil)

View Source

Specs

add_guild_member_role(
  integer(),
  integer(),
  integer(),
  Nostrum.Struct.Guild.AuditLogEntry.reason()
) :: error() | {:ok}

Adds a role to a member.

Role to add is specified by role_id. User to add role to is specified by guild_id and user_id. An optional reason can be given for the audit log.