Skip to content

Commands Reference

willianpm edited this page Mar 14, 2026 · 1 revision

Commands Reference

This page documents the currently loaded Discord commands under src/commands.

Slash Commands

/enquete

Purpose:

  • Create a new active poll in the current channel.

Required options:

  • nome-da-enquete (string)
  • opcoes (string list separated by commas)
  • max_votos (integer >= 1)
  • peso_mensalista (sim|nao)

Behavior:

  • Validates option list and vote limits.
  • Requires creator-level permission.
  • Sends poll embed and adds reaction emojis.
  • Persists poll in active-polls.json.

/rascunho

Purpose:

  • Manage poll drafts before publishing.

Subcommands:

  • criar
  • editar
  • adicionar-opcao
  • remover-opcao
  • listar
  • exibir
  • publicar
  • deletar

Behavior:

  • Requires creator-level permission.
  • Stores drafts in draft-polls.json.
  • publicar creates a live poll message and moves draft state accordingly.

/criador-de-enquete

Purpose:

  • Manage internal creator IDs (admin rights).

Subcommands:

  • adicionar
  • remover
  • listar

Behavior:

  • Uses internal file-based creator list.
  • Protects against self-removal of the last creator.

/mensalista

Purpose:

  • Manage monthly member list for weighted voting.

Subcommands:

  • adicionar
  • remover
  • listar

Behavior:

  • Maintains mensalistas.json.
  • Monthly member status can come from manual list and/or bound Discord role.

Context Menu Commands

User context:

  • Add/Del Mensalistas
  • Add/Del Criador de Enquetes

Message context:

  • Encerrar Votacao
  • Adicionar/Remover da enquete

Notes:

  • The command labels in Discord include accents where defined by code.
  • Context operations also enforce creator-level authorization.

Related Pages

Clone this wiki locally