Kes
DIAdiscord.js - Imagine an app
•Created by Kes on 6/26/2023 in #djs-questions
Assistance getting role by ID
Im trying to get a role via ID, however, whenever i pass that roleID to permissions override in channel.create, it throws a error saying its neither a role nor a User, can i not give channel permissions this way?
Code snippet:
Error
Full Code:
hastebin.com/share/tifugigeno.javascript
11 replies
DIAdiscord.js - Imagine an app
•Created by Kes on 6/10/2023 in #djs-questions
Calling a DM function from outside Discord.js
Heya, I was wondering if anyone has insight to how i can call for a DM event via a outside function,
My bot is running in-junction with a Fastify server, that runs authentication for a database, and when handing out access to this, I want the bot to DM the user their randomly generated key. I would assume there's a way to go about doing this, obviously, but i don't know how i would go about doing this, do i register a event in the event handler or something similar? Or can I just make a function to do this?
3 replies