Skip to content

Add support for bulk_overwrite_application_commands #21

@DylanLukes

Description

@DylanLukes

Noting this as an issue as I intend to implement and PR this. Working with application commands is a bit of a pain otherwise, as one needs to explicitly remove and add commands which introduces more delay in updated versions going live than if bulk overwritten (nearly instant for guild commands).

Sketch of intended additions:

  1. Add type equivalent to add_command args:
  @type application_command_spec ::
          %{
              name_or_path :: String.t() | application_command_path,
              command_module :: module,
              name_or_pid
          }
  1. Add bulk_overwrite_commands:
  @doc """
  ... todo
  """
  @callback bulk_overwrite_commands(
      command_specs :: [application_command_spec], 
      scope :: command_scope) ::
              :ok | [ {:error, reason :: String.t(), name_or_path :: String.t() | application_command_path} ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions