DakinDrago
DakinDrago
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
It's work !!!
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Ping'),
async execute(interaction) {
const ping = `${interaction.client.ws.ping}`;
const pingEmbed = new EmbedBuilder()
.setTitle('Pong !')
.setDescription(`The ping is **${ping}** ms.`)
.setColor('#ff0000');
interaction.reply({ embeds: [pingEmbed] });
},
};
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Ping'),
async execute(interaction) {
const ping = `${interaction.client.ws.ping}`;
const pingEmbed = new EmbedBuilder()
.setTitle('Pong !')
.setDescription(`The ping is **${ping}** ms.`)
.setColor('#ff0000');
interaction.reply({ embeds: [pingEmbed] });
},
};
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
I will test it.
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
const { Client, EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Donne le ping du bot.'),
async execute(interaction) {
const pingEmbed = new EmbedBuilder()
.setTitle('Pong !')
.setDescription(`Le ping du bot est de **${client.ws.ping}** ms.`)
.setColor('#ff0000');
interaction.reply({ embeds: [pingEmbed] });
},
};
const { Client, EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Donne le ping du bot.'),
async execute(interaction) {
const pingEmbed = new EmbedBuilder()
.setTitle('Pong !')
.setDescription(`Le ping du bot est de **${client.ws.ping}** ms.`)
.setColor('#ff0000');
interaction.reply({ embeds: [pingEmbed] });
},
};
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
This is in v13 ?
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
What then are equivalent in v14 ?
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
const { Client, EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Ping'),
async execute(interaction) {
const pingEmbed = new MessageEmbed()
.setTitle('Pong !')
.setDescription(`Ping = **${client.ws.ping}** ms.`)
.setColor('#ff0000');
interaction.reply({ embeds: [pingEmbed] });
},
};
const { Client, EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Ping'),
async execute(interaction) {
const pingEmbed = new MessageEmbed()
.setTitle('Pong !')
.setDescription(`Ping = **${client.ws.ping}** ms.`)
.setColor('#ff0000');
interaction.reply({ embeds: [pingEmbed] });
},
};
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
No, a pc traslator.
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
This is the code.
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
This is the error of my traductor.
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
No, no, no.
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
How can I fix this issue ?
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
Ok.
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 8/23/2023 in #djs-questions
Error with Ping command
[email protected] nœud v16.14.2 Code:
const {Client, EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
données : nouveau SlashCommandBuilder()
.setName('ping')
.setDescription('Ping'),
exécution asynchrone (interaction) {
const pingEmbed = nouveau MessageEmbed()
.setTitle('Pong !')
.setDescription(`Le ping est **${client.ws.ping}** ms.`)
.setColor('#ff0000');
interaction.reply({ embeds : [pingEmbed] });
},
} ;
const {Client, EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
données : nouveau SlashCommandBuilder()
.setName('ping')
.setDescription('Ping'),
exécution asynchrone (interaction) {
const pingEmbed = nouveau MessageEmbed()
.setTitle('Pong !')
.setDescription(`Le ping est **${client.ws.ping}** ms.`)
.setColor('#ff0000');
interaction.reply({ embeds : [pingEmbed] });
},
} ;
Problème : ${client.ws.ping}
35 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 7/6/2023 in #djs-questions
Error with Action (.\node_modules\discord.js\src\client\actions\ActionsManager.js:75)
Thanks @qjuh, it worked !
5 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 7/6/2023 in #djs-questions
Error with Action (.\node_modules\discord.js\src\client\actions\ActionsManager.js:75)
Ok.
5 replies
DIAdiscord.js - Imagine a bot
Created by DakinDrago on 7/6/2023 in #djs-questions
Error with Action (.\node_modules\discord.js\src\client\actions\ActionsManager.js:75)
It is [email protected] and node v16.14.2 .
5 replies