Basgamer999
Basgamer999
DIAdiscord.js - Imagine an app
Created by Basgamer999 on 6/24/2023 in #djs-questions
get a unknown webhook error.
Hello, I got a collector running on a message in my code 2048 so my buttons work. But sometimes there is a very small chance it goes erroring with unknown webhook error. I was unable to trace this error and was unable to intentionally recreate it. Is this a error on my side or discords side?
15 replies
DIAdiscord.js - Imagine an app
Created by Basgamer999 on 1/11/2023 in #djs-questions
Commands dont get executed somehow
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!')
.addBooleanOption(option =>
option.setName('hide')
.setDescription('Wherever the respond is hidden or not')
.setRequired(true)),
async execute(interaction) {
let hide = interaction.options.getBoolean('hide');
await interaction.reply({content: `API Latency is ${Math.round(interaction.client.ws.ping)}ms`, ephemeral: hide});
},
};
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!')
.addBooleanOption(option =>
option.setName('hide')
.setDescription('Wherever the respond is hidden or not')
.setRequired(true)),
async execute(interaction) {
let hide = interaction.options.getBoolean('hide');
await interaction.reply({content: `API Latency is ${Math.round(interaction.client.ws.ping)}ms`, ephemeral: hide});
},
};
this is my /ping command. It gets registered but it doesn't get executed when i do /ping hide:true in my discord.
12 replies
DIAdiscord.js - Imagine an app
Created by Basgamer999 on 10/18/2022 in #djs-questions
Responding to chooses
Hello how would you be able to respond differently depending which choose the user made using a stringoption for slash commands?
7 replies
DIAdiscord.js - Imagine an app
Created by Basgamer999 on 10/12/2022 in #djs-questions
uptime command
Hello i try to get a uptime command working but it gives error that uptime is undefinided
17 replies