HyperNeutrino
DIAdiscord.js - Imagine an app
•Created by HyperNeutrino on 11/30/2023 in #djs-questions
"Cannot send an empty message" when sending an image
2 replies
DIAdiscord.js - Imagine an app
•Created by HyperNeutrino on 10/1/2022 in #djs-questions
Fetching webhook breaks inconsistently
I have a command that takes a webhook URL and should do something (haven't gotten there yet) with it. It works fine if I start up the bot and call it on a valid URL.
However, if I call this command on a webhook URL with an invalid token, then when I call the command again with a valid URL, it does not work until I restart the bot.
This is the core of the code:
The error I get when I use it on an invalid URL is this:
Then, when I use it on the correct URL with the correct token, I get the following:
Except, the
console.log(match[1], match[2])
indicates that I am providing the token in the Client#fetchWebhook
call.24 replies
DIAdiscord.js - Imagine an app
•Created by HyperNeutrino on 8/10/2022 in #djs-questions
Get Default Emojis
For a bot I am working on with a dashboard, I need to make an emoji selector for the reaction roles section and I need to include the default (Unicode) emojis. For the guild ones, I can just use
guild.emojis.cache
, but how would I get the default emojis? Ideally I'd like their name and image, but right now I can't think of any place to start.4 replies