check if a variable is a interaction instance
Continuing from https://discord.com/channels/222078108977594368/824411059443204127/1171985032945094666.
here's the function code: https://pastebin.com/Lk4TgV2t
here's the isInteractionInstance function which is used in the createError function: https://pastebin.com/x93qKWWH
so basically this createError should work with both slash and message commands, however after this change, when createError is executed on a message command it sends the embed and replies (it should not reply, should just send the message in the channel), doesn't' do the other stuff in the code
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPnot solved but no longer need this