79 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.https://sourceb.in/7eq36NqGDl
v20.3.0 node
By not responding do you mean that the bot doesn't repond to anything ? or just the command
just the command
Why are you using followUp to respond ?
cauz .reply giving me error
And what's that error ? Because I don't see you doing an initial reply to the interaction first to do a followup next
The only one being the admin perm error message
this was error using .reply()
The error means that you already replyed to it
with .deferReply() or .reply()
Problem is there's no
O-O
Man this code is cursed...
Why are you using editReply when nothing is being deferred ?
in the setTimeouts
O-O
i should use .reply()?
Use followups in the setTimeouts because they're used to respond after some time
hmm
editReply can ONLY be used when the interaction is DEFERRED
and I don't see you having interaction.deferReply() anywhere
even still you get only 15 mins to respond to that
hmm let me do .followup()
And change all those initial followups to reply
oh
Or just do a main deferReply on the top and change the main replies to edit replies
While the setTimeout replies being followups
For the admin check. Do a try catch scope, throw a new Error on the if condition, catch it and send a followup
Which will get rid of that triggering when you don't want it
i have to do interaction.deferreply() and followup() in settimeouts?
the first in the top of your interaction yes. and then change all the followUps you have now to edit replies so you won't get the error of the interaction being already deferred.
And then because you already reply to the interaction with that. Use followups in the setTimeouts so they can safely respond after
Without throwing errors
And damn I just lost my nitro
;-;
i did something wrong
Welcome to the no nitro side
;-;
sorry not sorry, im lost in your code
;-;
You shall know my pain as well
Also please use source bin
i had nitro a year ago ;-;
If the code is long
wtf
you can't do this
Im about to have deppresion from this
.reply() 0_0
Imma just go jump off from a bridge
;-;
You can't pass message into the defer reply to display what you want.
You can't customize the <Bot> is thinking ... from discord
It's meant to say that the bot will take some time to respond
yes
So your code has 15 mins to do whatever the hek it's doing and respond
with .editReply()
or .followUp()
Remove that content from the defer as well
It will error out first
.
so where the content will go ;-;
i need
into reply or followup
Then send an initial message and use edit on it
If you're too confused about the
i removed the content ;-;
uh...
interaction => 3s => .deferReply() or .reply() => 15 min => .editReply() or .followUp() => ...
.reply() ends the interaction
Only followUps after that
or edit
editReply also only works once when deferred.
thats what i was aiming for
aa i cant type
https://youtu.be/jntUHXiFB8g
This tutorial will help you my friend
Fusion Terror
YouTube
[NEW] Command Reponses GUIDE || Discord.JS v14
In addition to our How To Make A Discord Bot in Discord.JS v14 series, this video I will be teaching you command response methods. I'll be showing you ephemeral replies, deferred replies, fetching replies, and more with explanation so new Discord.js programmers are able to learn!
🔗 | Useful Links/Downloads:
📟 | Node.js: https://bit.ly/2IbYJG0
⌨...
normal chain is
interaction => 3 seconds => reply or error
interaction => deferReply => 15 seconds => editReply or error
interaction => 3 seconds => reply => followUp
can u edit that ;-;
(^._.^)
It was nice, thanks for the idea ❤️
sometimes it's confusing on it's own
<3
If you're referring to us editing your code to correct it then no
O-o
Can't break the rules
Also we have our own lives as well
no spoonfeeding code
ok imma gonna check out guides
I literally gave him practicle guide, everything is explained nicely...
^
good luck
hey @akt01
hi
kaha se ho 😏
he'll be back
😏 bharat se
vaha kaha se 😏
haryana
Please go to your DMs if you're gonna chill.
And keep this dJS related
oh noice
sry ;-;
no am not intrested lol
You guys have #general then
And using English here is also a rule
#rules 2
i sux at english ;-; never learned seriously
well, i was just looking around found this guy struggling, thought of helping, he asked for my country , so i told him now back to my work
same bye