Lingo.Type.CommandPermissions (Lingo v0.4.2)

Copy Markdown View Source

The permissions of one command in a guild: which roles, users and channels may use it.

When id is the application's id, they apply to every command without permissions of its own. Each permission's type is :role, :user or :channel, and permission whether it's allowed.

Summary

Types

permission()

@type permission() :: %{
  id: String.t(),
  type: :role | :user | :channel | integer(),
  permission: boolean()
}

t()

@type t() :: %Lingo.Type.CommandPermissions{
  application_id: String.t(),
  guild_id: String.t(),
  id: String.t(),
  permissions: [permission()]
}