Wxrning
Explore posts from serversSIASapphire - Imagine a framework
•Created by Wxrning on 4/3/2024 in #sapphire-support
Listeners and Index.js
Hello, I basically made a Giveaway System, but I have a code that needs to be in index.js and 1 that needs to be as event, but right now I am clueless as where to put the index.js to put it into perspective of normal discord.js framework, 1 code ness to be in the inde.js and the other in the events folder but I don't know where to put these code using the sapphire framework.
When I put the code that's supposed to be in my index.js file, i get this error:
The code that's supposed to go into index.js:
https://sourceb.in/ANt8LGRFiM
The code that's supposed to go into the events folder aka listener:
https://sourceb.in/GD3Cbxbg5y
Here is my current index.js and listener code with the giveaway code included:
Index.js - https://sourceb.in/9NXZs3iBfO Event - https://sourceb.in/bODqOfaqBX
13 replies
SIASapphire - Imagine a framework
•Created by Wxrning on 3/25/2024 in #discordjs-support
Invalid Token Error
How do I fix this error:
I have already reset the token, I have already console logged the typeof token which is a string and I have consoled log the token itself which returns with the correct token.
11 replies
SIASapphire - Imagine a framework
•Created by Wxrning on 3/22/2024 in #sapphire-support
User Install (The new update)
Hello, I am attempting to make my JavaScript d.js Discord Bot work with the new User Install feature (The new update). To do this, I need to modify the
handleCommands
, but this is only found with the normal discord.js framework, which leads me wondering how to add the system to make the new UserInstall feature work with my sapphire framework.
If anyone could assist, I would be grateful!16 replies
SIASapphire - Imagine a framework
•Created by Wxrning on 3/11/2024 in #sapphire-support
Paginated Message not working
When I run this code, it says "This interaction failed" without any error.
What I am trying to do:
Look, what I'm trying to do is to make it so there is more than 1 server in an embed and buttons that goes left and right. Here is an example of how the embeds should look like:
🚫 Blacklisted Servers
(1st Server ID)
(Reason of Blacklist)
-----------------------
(2nd Server ID)
(Reason of Blacklist)
and so on.
6 replies
DIAdiscord.js - Imagine an app
•Created by Wxrning on 3/11/2024 in #djs-questions
"This Interaction Failed" Error
The code functions as followed:
Once I do
/blacklist-server add
, the owner of the blacklisted server will receive an DM where then click a button and apply to be unblacklisted.
The issues lies when the owner tries to click the button, it sends an "This interaction failed" error.
Here is my code:
10 replies
DIAdiscord.js - Imagine an app
•Created by Wxrning on 3/10/2024 in #djs-questions
npm i discord.js error
3 replies