UnknownPerson
UnknownPerson
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 11/12/2023 in #djs-questions
Discord API Error with Setting Commands
Solved that issue. Thank you.
6 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 11/12/2023 in #djs-questions
Discord API Error with Setting Commands
Let me go check
6 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 11/12/2023 in #djs-questions
Discord API Error with Setting Commands
Probably my issue
6 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
This ticket can be closed.
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
I have other issues now but this should help, thanks
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
I appreciate that, let me do that
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
How would I update that? Sorry
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
That look right?
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
discordjs-v14-bot-dev-version@1.0.0 /home/runner/FallenBot
└─┬ discord.js@14.0.0-dev.1653091711-fdeac9d
└── @discordjs/builders@0.14.0-dev.1653091712-fdeac9d
discordjs-v14-bot-dev-version@1.0.0 /home/runner/FallenBot
└─┬ discord.js@14.0.0-dev.1653091711-fdeac9d
└── @discordjs/builders@0.14.0-dev.1653091712-fdeac9d
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
sure can
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
@Myth 🌈 Any chance that helps?
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ApplicationCommandType, ButtonStyle } = require('discord.js');
const _ = require('lodash');
const fs = require('fs')

module.exports = {
name: 'help',
description: "List the bot's commands",
module: 'info',
cooldown: 3000,
run: async (client, interaction) => {
await interaction.deferReply();
let client1 = await client
let commands = await client1.slashCommands
const embed = new EmbedBuilder()
.setTitle('Command List')
.setDescription(`Here is a list of our current commands:`)
.setColor('#03fcdb')
.setTimestamp()
.setThumbnail(client.user.displayAvatarURL())
.setFooter({ text: client.user.tag })
for (const command of commands) {
embed.addFields(
{ name: `${command.name}`, value: `${command.description}`, },
);
}
return interaction.editReply({ embeds: [embed] })
}
};
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ApplicationCommandType, ButtonStyle } = require('discord.js');
const _ = require('lodash');
const fs = require('fs')

module.exports = {
name: 'help',
description: "List the bot's commands",
module: 'info',
cooldown: 3000,
run: async (client, interaction) => {
await interaction.deferReply();
let client1 = await client
let commands = await client1.slashCommands
const embed = new EmbedBuilder()
.setTitle('Command List')
.setDescription(`Here is a list of our current commands:`)
.setColor('#03fcdb')
.setTimestamp()
.setThumbnail(client.user.displayAvatarURL())
.setFooter({ text: client.user.tag })
for (const command of commands) {
embed.addFields(
{ name: `${command.name}`, value: `${command.description}`, },
);
}
return interaction.editReply({ embeds: [embed] })
}
};
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
Code:
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
ExpectedConstraintError > s.number.lessThanOrEqual
Invalid number value
Expected: expected <= 25
Received:
| NaN

at Object.run (/home/runner/FallenBot/node_modules/@sapphire/shapeshift/dist/index.js:702:72)
at /home/runner/FallenBot/node_modules/@sapphire/shapeshift/dist/index.js:113:66
at Array.reduce (<anonymous>)
at NumberValidator.parse (/home/runner/FallenBot/node_modules/@sapphire/shapeshift/dist/index.js:113:29)
at validateFieldLength (/home/runner/FallenBot/node_modules/@discordjs/builders/dist/index.js:133:24)
at EmbedBuilder.addFields (/home/runner/FallenBot/node_modules/@discordjs/builders/dist/index.js:243:5)
at Object.run (/home/runner/FallenBot/slashCommands/info/help.js:23:10)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
ExpectedConstraintError > s.number.lessThanOrEqual
Invalid number value
Expected: expected <= 25
Received:
| NaN

at Object.run (/home/runner/FallenBot/node_modules/@sapphire/shapeshift/dist/index.js:702:72)
at /home/runner/FallenBot/node_modules/@sapphire/shapeshift/dist/index.js:113:66
at Array.reduce (<anonymous>)
at NumberValidator.parse (/home/runner/FallenBot/node_modules/@sapphire/shapeshift/dist/index.js:113:29)
at validateFieldLength (/home/runner/FallenBot/node_modules/@discordjs/builders/dist/index.js:133:24)
at EmbedBuilder.addFields (/home/runner/FallenBot/node_modules/@discordjs/builders/dist/index.js:243:5)
at Object.run (/home/runner/FallenBot/slashCommands/info/help.js:23:10)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
20 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
Error:
20 replies