Piney
Piney
DIAdiscord.js - Imagine a boo! 👻
Created by Piney on 7/26/2024 in #djs-questions
What's wrong with this slash command?
export default class ChemInfoCommand extends BaseCommand {
constructor() {
super(
new SlashCommandBuilder()
.setName("cheminfo")
.setDescription("Get information about a chemical")
.addStringOption((option) =>
option
.setName("Name")
.setDescription("Name of chemical compound")
.setRequired(false),
)
.addStringOption((option) =>
option
.setName("Formula")
.setDescription("Formula of chemical compound")
.setRequired(false),
)
.setDMPermission(true),
);
}
export default class ChemInfoCommand extends BaseCommand {
constructor() {
super(
new SlashCommandBuilder()
.setName("cheminfo")
.setDescription("Get information about a chemical")
.addStringOption((option) =>
option
.setName("Name")
.setDescription("Name of chemical compound")
.setRequired(false),
)
.addStringOption((option) =>
option
.setName("Formula")
.setDescription("Formula of chemical compound")
.setRequired(false),
)
.setDMPermission(true),
);
}
13 replies