Nostrum.Permission.from_bitset

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

Specs

from_bitset(bitset()) :: [t()]

Converts the given bitset to a list of permissions.

If invalid bits are given they will be omitted from the results.

Examples

iex> Nostrum.Permission.from_bitset(0x08000002)
[:manage_nicknames, :kick_members]

iex> Nostrum.Permission.from_bitset(0x4000000000000)
[]