Amgelo
Amgelo
DIAdiscord.js - Imagine an app
Created by Amgelo on 5/8/2024 in #djs-questions
Cloning a SlashCommandBuilder
Is there a way to automatically clone a SlashCommandBuilder? Its constructor is empty and there's no clone or .from() method
23 replies
DIAdiscord.js - Imagine an app
Created by Amgelo on 4/15/2024 in #djs-questions
Mapping command data to an ApplicationCommand
Hi, I'm trying to make a way to recognize if there's an ApplicationCommand that matches (exactly) the data from a SlashCommandBuilder. I checked this https://old.discordjs.dev/#/docs/discord.js/14.14.1/class/ApplicationCommand?scrollTo=equals but it seems to take the entire ApplicationCommand data (like application id), and I couldn't find another related method that works only for the data of the command itself. Ideally I want something built-in inside djs, without needing to code this check myself. Thanks!
38 replies