#cannot send an empty message; unknown interaction

8 messages · Page 1 of 1 (latest)

wind jetty
#

i ran my bot and tried running a custom command and got this hug e error
https://pastebin.com/JahGCDRh

the custom command is called oso.js and is here
https://pastebin.com/mnWN66hF

for some reason ever since trying to deploy this command the bot would not respond to the ping, server and user commands from the discord.js guide i followed with

i use node version 25.8.0

craggy nexusBOT
stuck sedge
#

.reply doesn’t take an AttachmentBuilder

#

You have to pass it in like .reply({files: [ <AttachmentBuilder> ] });

#

getRandomOso() also returns a Promise, so you need to resolve that first

#

You should call deferReply first, then the getRandomOso, then editReply once you’ve gotten the attachment

wind jetty
stuck sedge