Alchemy.Cogs.permissions
You're seeing just the macro
permissions
, go back to Alchemy.Cogs module for more information.
Returns the permission bitset of the current member in the channel the command was called from.
If you just want the base permissions of the member in the guild,
see guild_permissions
.
Returns {:ok, perms}
, or {:error, why}
. Fails if not called from
a guild, or the guild or the member couldn't be fetched from the cache.
Example
Cogs.def perms do
with {:ok, permissions} <- Cogs.permissions() do
Cogs.say "Here's a list of your permissions `#{Permissions.to_list(permissions)}`"
end
end