Nostrum.Struct.Guild.Role.mention

You're seeing just the function mention, go back to Nostrum.Struct.Guild.Role module for more information.

Specs

mention(t()) :: String.t()

Formats an Nostrum.Struct.Role into a mention.

Examples

iex> role = %Nostrum.Struct.Guild.Role{id: 431886639627763722}
...> Nostrum.Struct.Guild.Role.mention(role)
"<@&431886639627763722>"