-
Notifications
You must be signed in to change notification settings - Fork 0
Commands Reference
willianpm edited this page Mar 14, 2026
·
1 revision
This page documents the currently loaded Discord commands under src/commands.
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.
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.
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.
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.
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.