i didn't ping pong correctly

This commit is contained in:
MapleLeaf
2022-01-09 01:47:23 -06:00
parent f5412b139e
commit 238708122b

View File

@@ -87,15 +87,15 @@ const reacord = new ReacordDiscordJs(client)
client.on("ready", () => { client.on("ready", () => {
client.application?.commands.create({ client.application?.commands.create({
name: "pong", name: "ping",
description: "pong!", description: "pong!",
}) })
}) })
client.on("interactionCreate", (interaction) => { client.on("interactionCreate", (interaction) => {
if (interaction.isCommand() && interaction.commandName === "pong") { if (interaction.isCommand() && interaction.commandName === "ping") {
// Use the reply() function instead of send // Use the reply() function instead of send
reacord.reply(interaction, <>pong</>) reacord.reply(interaction, <>pong!</>)
} }
}) })
@@ -131,10 +131,10 @@ function handleCommands(client, commands) {
```jsx ```jsx
handleCommands(client, [ handleCommands(client, [
{ {
name: "pong", name: "ping",
description: "pong!", description: "pong!",
run: (interaction) => { run: (interaction) => {
reacord.reply(interaction, <>pong</>) reacord.reply(interaction, <>pong!</>)
}, },
}, },
{ {