Comments (4)
Hi, I fixed this issue by changing the last part a little bit, seems like you now need async and await to register the slash commands, something like this... so after the const rest line, delete that and put this and the commands should register >>
(async () => {
try {
console.log('Started refreshing application (/) commands.');
await rest.put(Routes.applicationCommands(clientId), { body: commands })
.then(() => console.log('Successfully registered application commands.'))
.catch(console.error);
} catch (error) {
console.error(error);
}
})();
Pero @eliangerard hay un problema, el bot no habla en el canal de voz, solo responde en texto 😬, También tuve que poner esta línea en el archivo Response.js; de lo contrario, para algunas consultas, el bot envía un mensaje vacío y se atasca con la API de discord 😥 if (text.length == 0 || text == "") return;
from discord-assistant-v2.
Can you give me more information? Are you unable to use Slash Command or are you not getting a response?
from discord-assistant-v2.
yes there is no response from the bot ...actually there is no / cmd option available to discord chat box. also there is no error with code running console and the permission is also 8
from discord-assistant-v2.
Hola, 4 meses después ya está arreglado, agregué lo que me dijiste @D3FAU4T y por lo de los mensajes vacíos, aparentemente el API de Google Assistant no siempre devuelve una respuesta con texto, este actúa como ayuda visual pero no siempre tiene que existir, por la naturaleza del asistente, así que si eso sucede, lo indica, muchas gracias :)
from discord-assistant-v2.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-assistant-v2.