Hanako🌸
DIAdiscord.js - Imagine an app
•Created by Hanako🌸 on 7/31/2024 in #djs-questions
Executing other commands using buttons
Hello! I'm working on a setup command that shows features (mod logs, welcome channels, autorole on/off, etc) and lets users click a button to setup the selected option.
I already have slash commands made for each feature, however, wanted to give users a place to configure everything in one command.
My question is- is there a way to have a slash command execute when a button is pressed? I know is a thing, but I'm a little lost on how I'd pass a button press into the execute function properly to run an already existing command.
4 replies