Nostrum.Permission.from_bit-exclamation-mark

You're seeing just the function from_bit-exclamation-mark, go back to Nostrum.Permission module for more information.

Specs

from_bit!(bit()) :: t()

Same as from_bit/1, but raises ArgumentError in case of failure.

Examples

iex> Nostrum.Permission.from_bit!(0x04000000)
:change_nickname

iex> Nostrum.Permission.from_bit!(0)
** (ArgumentError) expected a valid bit, got: `0`