djs.o_docs
v1.0.0
Published
Uma npm para localizar informações nas docs do discord.js
Downloads
1
Maintainers
Readme
🚧 | Instalação
npm i djs-docs-npm
const docs = require("djs-docs-npm")
| Metodos |Como usar |
| ------------ | ------------ |
| getSync
| getSync(pesquisa, callback, <type>
)
| get
| get(pesquisa, <type>
)
- Lemrando: o type é opcional.
🏃♀️ | Guia rápido
💁🏼♀️ | Métodos
get
O método get busca um conteúdo da docs do d.js
Veja o exemplo:
docs.get('message')
Lembre-se, sem letras maiúsculas, nem coisas que não são letras de A a B e o mais importanto, sem ESPAÇOS.
OBS: O valor retorna será uma promise(caso não for null), então você tem dê tratá-la.
getSync
O método get busca um conteúdo da docs do d.js
Veja o exemplo:
docs.getSync('message', console.log)
- Lembre-se, sem letras maiúsculas, nem coisas que não são letras de A a B e o mais importanto, sem ESPAÇOS.
🤔 | Diferença
getsync&get
- O get retorna uma promise, o getSync, não retorna uma promise, e o getSync deve ter uma callback.
Suporte
Contate-me no Discord: Belzinhu#8395