technyk
DIAdiscord.js - Imagine an app
•Created by technyk on 11/11/2024 in #djs-questions
Interaction has already been acknowledged
Hi, I am making a Discord bot which utilizes interactions and message ids. Basically, whenever a message id is supplied into a command, it should currently reply back with the name of the channel which the command was run in. However, if the id is invalid, it should reply back with an error message.
Unfortunately so, the bot does reply with the channel name everytime the command is ran (regardless of the validity of the message id), and if the message id was invalid it just throws an error into the console, which goes as follows:
Command code below:
Thank you in advance for any tips and/or suggestions for improvements to the code :cronchycat:
18 replies