seasha
DIAdiscord.js - Imagine an app
•Created by seasha on 11/12/2023 in #djs-questions
Trouble pushing to heroku
I'm trying to deploy my discordjs application to heroku, but i keep getting this error which I don't know how to fix:
version discordjs - 14.13.0
nodejs - 18.16.0
Based on the error, it seems like a discordjs sorta issue so guidance would be appreciated thank you
3 replies
DIAdiscord.js - Imagine an app
•Created by seasha on 10/14/2023 in #djs-questions
DM User based on the Username
Hi! I'm trying to use the discord rest API (https://discord.com/developers/docs/resources/user#get-user), but I can't seem to find anything that allows you to DM a user based on their username. This is my current work around so far but it's not working.
First, it says that the discordId variable is not defined after I return it. Second, it says that the variable Discord is not defined. How do I fix this?
14 replies
DIAdiscord.js - Imagine an app
•Created by seasha on 10/14/2023 in #djs-questions
Zlib-sync failed to resolve
Hi! So I'm trying to integrate discordjs into my Svelte application because I want the bot to send DMs to users on a button press, but I don't want it to actually have any commands. So I created this
discordBot.js
file as shown and then imported the sendDM()
function on one of the pages:
But when I open the page on the localhost which calls one of these functions, it gives me the following error:
I'm not sure what the issue is, and guidance would be very helpful6 replies