Spaxter
Spaxter
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Lim yujeong on 4/1/2024 in #djs-questions
Hi everyone i have a question can anyone help me?
What is your question exactly? I think you need to rephrase it
5 replies
DIAdiscord.js - Imagine an app
Created by f(x) = 1/x on 4/1/2024 in #djs-voice
addition
The difference is that getNumber gives you null which is 0 when added, while ?.value gives you undefined which will be NaN when added
26 replies
DIAdiscord.js - Imagine an app
Created by f(x) = 1/x on 4/1/2024 in #djs-voice
addition
Why not just use getNumber?
26 replies
DIAdiscord.js - Imagine an app
Created by f(x) = 1/x on 4/1/2024 in #djs-voice
addition
I also already told you to use getNumber here
26 replies
DIAdiscord.js - Imagine an app
Created by f(x) = 1/x on 3/31/2024 in #djs-questions
addition and subtraction
.get returns a CommandInteractionOption object
5 replies
DIAdiscord.js - Imagine an app
Created by f(x) = 1/x on 3/31/2024 in #djs-questions
addition and subtraction
It should be interaction.options.getNumber
5 replies
DIAdiscord.js - Imagine an app
Created by sex money feelings on 3/25/2024 in #djs-questions
How do i encrypt my token?
Why would you need an eval command publically available anyways?
51 replies
DIAdiscord.js - Imagine an app
Created by Penitent on 3/27/2024 in #djs-questions
Using collector.on('end') to edit reply?
You should edit the original interaction of the command instead, I don't believe the 'end' event callback has an interaction since the collector has ended
35 replies
DIAdiscord.js - Imagine an app
Created by Penitent on 3/27/2024 in #djs-questions
Using collector.on('end') to edit reply?
"an error" is pretty vague. What error did you get?
35 replies
DIAdiscord.js - Imagine an app
Created by Penitent on 3/27/2024 in #djs-questions
Using collector.on('end') to edit reply?
You can just set the timeout to 60000 and use
collector.on('end', (i, reason) => {
if (reason === 'time') {
// Edit your reply here
}
});
collector.on('end', (i, reason) => {
if (reason === 'time') {
// Edit your reply here
}
});
35 replies
DIAdiscord.js - Imagine an app
Created by sex money feelings on 3/25/2024 in #djs-questions
How do i encrypt my token?
Sure, but I feel like unless you absolutely need an eval command you're just overcomplicating things
51 replies
DIAdiscord.js - Imagine an app
Created by sex money feelings on 3/25/2024 in #djs-questions
How do i encrypt my token?
Like Qjuh said, just don't have en eval command, or if you do, make sure to restrict it to only yourself. There's always going to be something you miss if you try to "protect" it
51 replies
DIAdiscord.js - Imagine an app
Created by vekizxo on 3/24/2024 in #djs-questions
error
The same error?
24 replies
DIAdiscord.js - Imagine an app
Created by vekizxo on 3/24/2024 in #djs-questions
error
did you mean interaction.member.roles?
24 replies
DIAdiscord.js - Imagine an app
Created by vekizxo on 3/24/2024 in #djs-questions
error
interaction.roles is not a thing
24 replies
DIAdiscord.js - Imagine an app
Created by BakeWithMe on 3/23/2024 in #djs-questions
embed not working sometimes on random cat image command
Then it sounds to me like some of your links are not pointing to valid images
6 replies
DIAdiscord.js - Imagine an app
Created by BakeWithMe on 3/23/2024 in #djs-questions
embed not working sometimes on random cat image command
By "not embedding" do you mean the image isn't displaying at all, or is being sent outside of the embed?
6 replies
DIAdiscord.js - Imagine an app
Created by </JustTheDev> on 3/20/2024 in #djs-questions
Premium only command
you're only shooting yourself in the foot by inventing your own database with json files. They're not scalable, corruption prone and unstable. There's no reason to use them over a real database engine.
9 replies