#automodrule command

109 messages · Page 1 of 1 (latest)

subtle pine
#

no error but not responding

scarlet quailBOT
#

• 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.

subtle pine
#

v20.3.0 node

stone oak
#

By not responding do you mean that the bot doesn't repond to anything ? or just the command

stone oak
#

Why are you using followUp to respond ?

subtle pine
stone oak
#

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

subtle pine
#

error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred. this was error using .reply()

jaunty coyote
#

The error means that you already replyed to it

#

with .deferReply() or .reply()

stone oak
#

Problem is there's no reply

subtle pine
stone oak
#

Man this code is cursed...
Why are you using editReply when nothing is being deferred ?

#

in the setTimeouts

stone oak
#

Use followups in the setTimeouts because they're used to respond after some time

stone oak
#

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

subtle pine
stone oak
#

And change all those initial followups to reply

subtle pine
#

oh

stone oak
#

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

subtle pine
#

i have to do interaction.deferreply() and followup() in settimeouts?

stone oak
#

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

subtle pine
#

i did something wrong

jaunty coyote
subtle pine
#

;-;

jaunty coyote
#

sorry not sorry, im lost in your code

subtle pine
stone oak
#

Also please use source bin

subtle pine
#

i had nitro a year ago ;-;

stone oak
#

If the code is long

subtle pine
stone oak
#

wtf

#

you can't do this

jaunty coyote
#

Im about to have deppresion from this

subtle pine
stone oak
subtle pine
stone oak
# subtle pine .reply() 0_0

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

stone oak
#

So your code has 15 mins to do whatever the hek it's doing and respond

jaunty coyote
#

with .editReply()

#

or .followUp()

stone oak
#

Remove that content from the defer as well

#

It will error out first

subtle pine
#

so where the content will go ;-;

#

i need

jaunty coyote
#

into reply or followup

stone oak
#

Then send an initial message and use edit on it

#

If you're too confused about the replies

subtle pine
#

i removed the content ;-;

jaunty coyote
#

uh...
interaction => 3s => .deferReply() or .reply() => 15 min => .editReply() or .followUp() => ...

stone oak
#

.reply() ends the interaction

#

Only followUps after that

#

or edit

#

editReply also only works once when deferred.

jaunty coyote
#

thats what i was aiming for

subtle pine
obtuse vortex
#

https://youtu.be/jntUHXiFB8g

This tutorial will help you my friend

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
⌨...

▶ Play video
stone oak
#

normal chain is

interaction => 3 seconds => reply or error
interaction => deferReply => 15 seconds => editReply or error
interaction => 3 seconds => reply => followUp

subtle pine
#

can u edit that ;-;

#

(^._.^)

stone oak
stone oak
stone oak
#

Can't break the rules

#

Also we have our own lives as well

jaunty coyote
#

no spoonfeeding code

subtle pine
#

ok imma gonna check out guides

obtuse vortex
#

I literally gave him practicle guide, everything is explained nicely...

stone oak
#

dogeHaHa good luck

subtle pine
#

hey @obtuse vortex

obtuse vortex
#

hi

subtle pine
#

kaha se ho 😏

jaunty coyote
obtuse vortex
#

😏 bharat se

subtle pine
obtuse vortex
#

haryana

stone oak
#

Please go to your DMs if you're gonna chill.
And keep this dJS related

subtle pine
obtuse vortex
stone oak
#

You guys have #archive-offtopic then

#

And using English here is also a rule

#

#rules 2

subtle pine
obtuse vortex
#

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