automodrule command

no error but not responding
79 Replies
d.js toolkit
d.js toolkit2y ago
• 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.
KAVI
KAVI2y ago
By not responding do you mean that the bot doesn't repond to anything ? or just the command
CatGotError!
CatGotError!OP2y ago
just the command
KAVI
KAVI2y ago
Why are you using followUp to respond ?
CatGotError!
CatGotError!OP2y ago
cauz .reply giving me error
KAVI
KAVI2y ago
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
CatGotError!
CatGotError!OP2y ago
error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
this was error using .reply()
Nounejm
Nounejm2y ago
The error means that you already replyed to it with .deferReply() or .reply()
KAVI
KAVI2y ago
Problem is there's no ohno
CatGotError!
CatGotError!OP2y ago
O-O
KAVI
KAVI2y ago
Man this code is cursed... Why are you using editReply when nothing is being deferred ? in the setTimeouts
CatGotError!
CatGotError!OP2y ago
O-O i should use .reply()?
KAVI
KAVI2y ago
Use followups in the setTimeouts because they're used to respond after some time
CatGotError!
CatGotError!OP2y ago
hmm
KAVI
KAVI2y ago
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
CatGotError!
CatGotError!OP2y ago
hmm let me do .followup()
KAVI
KAVI2y ago
And change all those initial followups to reply
CatGotError!
CatGotError!OP2y ago
oh
KAVI
KAVI2y ago
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
CatGotError!
CatGotError!OP2y ago
i have to do interaction.deferreply() and followup() in settimeouts?
KAVI
KAVI2y ago
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
CatGotError!
CatGotError!OP2y ago
;-;
CatGotError!
CatGotError!OP2y ago
i did something wrong
Nounejm
Nounejm2y ago
Welcome to the no nitro side putinW
CatGotError!
CatGotError!OP2y ago
;-;
Nounejm
Nounejm2y ago
sorry not sorry, im lost in your code
CatGotError!
CatGotError!OP2y ago
;-;
KAVI
KAVI2y ago
You shall know my pain as well Also please use source bin
CatGotError!
CatGotError!OP2y ago
i had nitro a year ago ;-;
KAVI
KAVI2y ago
If the code is long
KAVI
KAVI2y ago
wtf
KAVI
KAVI2y ago
you can't do this
Nounejm
Nounejm2y ago
Im about to have deppresion from this
CatGotError!
CatGotError!OP2y ago
.reply() 0_0
KAVI
KAVI2y ago
Imma just go jump off from a bridge
CatGotError!
CatGotError!OP2y ago
;-;
KAVI
KAVI2y ago
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
CatGotError!
CatGotError!OP2y ago
yes
KAVI
KAVI2y ago
So your code has 15 mins to do whatever the hek it's doing and respond
Nounejm
Nounejm2y ago
with .editReply() or .followUp()
KAVI
KAVI2y ago
Remove that content from the defer as well It will error out first .
CatGotError!
CatGotError!OP2y ago
so where the content will go ;-; i need
Nounejm
Nounejm2y ago
into reply or followup
KAVI
KAVI2y ago
Then send an initial message and use edit on it If you're too confused about the Thonk
CatGotError!
CatGotError!OP2y ago
i removed the content ;-;
Nounejm
Nounejm2y ago
uh... interaction => 3s => .deferReply() or .reply() => 15 min => .editReply() or .followUp() => ...
KAVI
KAVI2y ago
.reply() ends the interaction Only followUps after that or edit editReply also only works once when deferred.
Nounejm
Nounejm2y ago
thats what i was aiming for
CatGotError!
CatGotError!OP2y ago
aa i cant type
AkT
AkT2y ago
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 ⌨...
KAVI
KAVI2y ago
normal chain is interaction => 3 seconds => reply or error interaction => deferReply => 15 seconds => editReply or error interaction => 3 seconds => reply => followUp
CatGotError!
CatGotError!OP2y ago
can u edit that ;-; (^._.^)
KAVI
KAVI2y ago
It was nice, thanks for the idea ❤️ sometimes it's confusing on it's own
Nounejm
Nounejm2y ago
<3
KAVI
KAVI2y ago
If you're referring to us editing your code to correct it then no
CatGotError!
CatGotError!OP2y ago
O-o
KAVI
KAVI2y ago
Can't break the rules Also we have our own lives as well
Nounejm
Nounejm2y ago
no spoonfeeding code
CatGotError!
CatGotError!OP2y ago
ok imma gonna check out guides
AkT
AkT2y ago
I literally gave him practicle guide, everything is explained nicely...
Nounejm
Nounejm2y ago
^
KAVI
KAVI2y ago
dogeHaHa good luck
CatGotError!
CatGotError!OP2y ago
hey @akt01
AkT
AkT2y ago
hi
CatGotError!
CatGotError!OP2y ago
kaha se ho 😏
Nounejm
Nounejm2y ago
he'll be back
AkT
AkT2y ago
😏 bharat se
CatGotError!
CatGotError!OP2y ago
vaha kaha se 😏
AkT
AkT2y ago
haryana
KAVI
KAVI2y ago
Please go to your DMs if you're gonna chill. And keep this dJS related
CatGotError!
CatGotError!OP2y ago
oh noice sry ;-;
AkT
AkT2y ago
no am not intrested lol
KAVI
KAVI2y ago
You guys have #general then And using English here is also a rule #rules 2
CatGotError!
CatGotError!OP2y ago
i sux at english ;-; never learned seriously
AkT
AkT2y ago
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
CatGotError!
CatGotError!OP2y ago
same bye
Want results from more Discord servers?
Add your server