@openvertice/bot-sdk 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/src/tipos.d.ts +1 -1
- package/package.json +1 -1
- package/src/tipos.ts +1 -1
package/README.md
CHANGED
|
@@ -157,10 +157,11 @@ monitorar ou gravar.
|
|
|
157
157
|
`RTCAudioSource` — é o que `tocarTom` faz; lendo arquivo, respeite o mesmo
|
|
158
158
|
tamanho.
|
|
159
159
|
|
|
160
|
-
**
|
|
161
|
-
(
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
**Sala privada não é problema seu.** O bot não é limitado pelas regras das salas
|
|
161
|
+
(`@all: negar`, exceção de conta, grupo herdado, senha): quem manda no que ele
|
|
162
|
+
alcança é o **token** — a lista de canais do painel. E ela vale na hora: se
|
|
163
|
+
`canaisVoz` mudar com o bot tocando, chega `voice.left` com `motivo: "acesso"`;
|
|
164
|
+
se um canal de texto sair da lista, param de chegar eventos dele. Com
|
|
164
165
|
`motivo: "pedido"` é a saída que você pediu em `voz.sair()`.
|
|
165
166
|
|
|
166
167
|
## Exemplos
|
package/dist/src/tipos.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ export interface Eventos {
|
|
|
243
243
|
/** The bot left (or was removed from) the voice room. */
|
|
244
244
|
/**
|
|
245
245
|
* Saiu da sala. `pedido` = o bot pediu; `acesso` = o servidor o tirou porque a
|
|
246
|
-
*
|
|
246
|
+
* sala saiu da lista de canais de voz do token (editada no painel).
|
|
247
247
|
*/
|
|
248
248
|
"voice.left": {
|
|
249
249
|
code: string;
|
package/package.json
CHANGED
package/src/tipos.ts
CHANGED
|
@@ -228,7 +228,7 @@ export interface Eventos {
|
|
|
228
228
|
/** The bot left (or was removed from) the voice room. */
|
|
229
229
|
/**
|
|
230
230
|
* Saiu da sala. `pedido` = o bot pediu; `acesso` = o servidor o tirou porque a
|
|
231
|
-
*
|
|
231
|
+
* sala saiu da lista de canais de voz do token (editada no painel).
|
|
232
232
|
*/
|
|
233
233
|
"voice.left": { code: string; motivo: "pedido" | "acesso" };
|
|
234
234
|
/** WebRTC signaling addressed to this bot by peer `de`. */
|