maybebas
maybebas
DIAdiscord.js - Imagine an app
Created by maybebas on 11/25/2023 in #djs-questions
How do I check if a bot is in a voice channel?
[email protected] node v18.18.1
4 replies
DIAdiscord.js - Imagine an app
Created by maybebas on 8/2/2023 in #djs-questions
How to get Interaction choice name? (djs v14.7.1)
(node v18.17.0)
3 replies
DIAdiscord.js - Imagine an app
Created by maybebas on 10/9/2022 in #djs-questions
Command handler error
I do some projects as hobby and I'm learning online, without courses, just for fun. Thanks for the correction tho
5 replies
DIAdiscord.js - Imagine an app
Created by maybebas on 10/9/2022 in #djs-questions
Command handler error
Ok so, I used Typescript's import and export features. The problem should be at ping.ts:1:1?
at Object.<anonymous> (C:\mydir\commands\ping.ts:1:1)
at Object.<anonymous> (C:\mydir\commands\ping.ts:1:1)
import { SlashCommandBuilder, client } from "../index";


module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
await interaction.reply(`:ping_pong: Pong! ${client.w.ping}ms`);
},
};
import { SlashCommandBuilder, client } from "../index";


module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
await interaction.reply(`:ping_pong: Pong! ${client.w.ping}ms`);
},
};
I don't know how to solve it honestly, I can't const as it would be an existing declaration
5 replies
DIAdiscord.js - Imagine an app
Created by maybebas on 10/9/2022 in #djs-questions
Command handler error
i'll take a look at it thanks <3
5 replies
DIAdiscord.js - Imagine an app
Created by maybebas on 10/9/2022 in #djs-questions
Command handler error
it may be my ping.ts command as if I remove it the deploy works
5 replies