Ethereal <3
Ethereal <3
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/16/2023 in #djs-questions
Code saying the command doesn't exist
thx tho
9 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/16/2023 in #djs-questions
Code saying the command doesn't exist
im kinda stupid
9 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/16/2023 in #djs-questions
Code saying the command doesn't exist
i was using a invaild type for my naming scheme
9 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/16/2023 in #djs-questions
Code saying the command doesn't exist
wait...
9 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/16/2023 in #djs-questions
Code saying the command doesn't exist
when printing our interaction, it has commandName: 'ping', in it
9 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/16/2023 in #djs-questions
Code saying the command doesn't exist
funny enough
9 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/16/2023 in #djs-questions
Code saying the command doesn't exist
And if I try printing the variable command, it returns undefined
9 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/12/2023 in #djs-questions
Getting error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function
thanks
15 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/12/2023 in #djs-questions
Getting error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function
that was the problem
15 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/12/2023 in #djs-questions
Getting error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function
thats weird
15 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/12/2023 in #djs-questions
Getting error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function
i think its referring to this:
client.on("interactionCreate", async (interaction) => {
if (!interaction.isCommand()) return;

const command = client.commands.get(interaction.commandName);

if (!command) {
console.error(`No command matching ${interaction.commandName} was found.`);
return;
}

try {
await command.execute(interaction);
} catch (error) {
console.error(error);

// Handle error response based on interaction state
if (interaction.replied || interaction.deferred) {
await interaction.followUp({ content: "There was an error while executing this command!", ephemeral: true });
} else {
await interaction.reply({ content: "There was an error while executing this command!", ephemeral: true });
}
}
});
client.on("interactionCreate", async (interaction) => {
if (!interaction.isCommand()) return;

const command = client.commands.get(interaction.commandName);

if (!command) {
console.error(`No command matching ${interaction.commandName} was found.`);
return;
}

try {
await command.execute(interaction);
} catch (error) {
console.error(error);

// Handle error response based on interaction state
if (interaction.replied || interaction.deferred) {
await interaction.followUp({ content: "There was an error while executing this command!", ephemeral: true });
} else {
await interaction.reply({ content: "There was an error while executing this command!", ephemeral: true });
}
}
});
15 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/12/2023 in #djs-questions
Getting error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function
wait
15 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/12/2023 in #djs-questions
Getting error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function
C:\projects\SulfurBot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4 client.actions.InteractionCreate.hasPermissionshandle(packet.d); ^ TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function at module.exports [as INTERACTION_CREATE] (C:\projects\SulfurBot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\projects\SulfurBot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:354:31) at WebSocketManager.<anonymous> (C:\projects\SulfurBot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:238:12) at WebSocketManager.emit (C:\projects\SulfurBot\node_modules@vladfrangu\async_event_emitter\dist\index.js:282:31) at WebSocketShard.<anonymous> (C:\projects\SulfurBot\node_modules@discordjs\ws\dist\index.js:1103:51) at WebSocketShard.emit (C:\projects\SulfurBot\node_modules@vladfrangu\async_event_emitter\dist\index.js:282:31) at WebSocketShard.onMessage (C:\projects\SulfurBot\node_modules@discordjs\ws\dist\index.js:938:14) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Node.js v18.16.0
15 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 7/12/2023 in #djs-questions
Getting error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function
[email protected] and v18.16.0
15 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 6/29/2023 in #djs-questions
Interactions Endpoint Instead?
Have a great day
8 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 6/29/2023 in #djs-questions
Interactions Endpoint Instead?
Alright thanks
8 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Ethereal <3 on 6/29/2023 in #djs-questions
Interactions Endpoint Instead?
Alright thanks
8 replies