Nostrum.Permission.to_bitset

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

Specs

to_bitset(Enum.t()) :: bitset()

Converts the given enumerable of permissions to a bitset.

Examples

iex> Nostrum.Permission.to_bitset([:administrator, :create_instant_invite])
9