ghehusbcbrhjrjxnnxnnxnx
ghehusbcbrhjrjxnnxnnxnx
DIAdiscord.js - Imagine an app
Created by ghehusbcbrhjrjxnnxnnxnx on 7/22/2023 in #djs-questions
how to create a simple /modal form command
The /modal command code structure should look something like this
module.exports = {
name: 'ping',
description: 'Pong!',

callback: (client, interaction) => {
interaction.reply(`Pong! 🏓🏓🏓 My ping is ${client.ws.ping}ms`);
},
};
module.exports = {
name: 'ping',
description: 'Pong!',

callback: (client, interaction) => {
interaction.reply(`Pong! 🏓🏓🏓 My ping is ${client.ws.ping}ms`);
},
};
2 replies
DIAdiscord.js - Imagine an app
Created by ghehusbcbrhjrjxnnxnnxnx on 7/4/2023 in #djs-questions
TypeError: require(...).config is not a function
this error comes up when I do npm run test. I searched all over my files and codes and I don't get why I am getting this error.
9 replies
DIAdiscord.js - Imagine an app
Created by ghehusbcbrhjrjxnnxnnxnx on 7/2/2023 in #djs-questions
ReferenceError: interaction is not defined
DiscordAPIError: Invalid Form Body error when i load my slash commands into my discord bot
56 replies
DIAdiscord.js - Imagine an app
Created by ghehusbcbrhjrjxnnxnnxnx on 6/30/2023 in #djs-questions
"BitFieldInvalid" error
I keep getting the "BitFieldInvalid" error. It says throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit); ^ RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS.
13 replies