#component.RespondAsync doesn't work

1 messages · Page 1 of 1 (latest)

vale pagoda
#

Hi, sometimes, component.RespondAsync doesn't work, and sometimes it works, I don't understand why. It's not related to my script, but some days it's works, some other days it doesn't and I don't understand.

Can someone help me pls ?

component.Channel.SendAsyncMessage works very well

#

and I have an other question, why discord always answer me "failed interaction", even if the bot has respond ?

kind elbow
#

Ehmm
Do you get any errors in console?

  • Make sure you have a handler for the DiscordSocketClient.Log event - it logs all errors on that event

Also just a wild guess, this could be related to system clock - make sure it's synced with NTP server

vale pagoda
vale pagoda
kind elbow
#

Are you on windows or on linux?

vale pagoda
#

windows

kind elbow
#

If you're on windows 10 or 11 it's as simple as going into

  • Settings
  • Date & time
  • "Sync time"
vale pagoda
#

it... works...

#

thank you so much 😂

#

Should I do the sync every day ? hours ? month ?

kind elbow
#

Welp
It should do it automatically if you have the option checked

vale pagoda
#

ok

#

and just

#

when it respond, it works, but when it's not a response by the bot, how can I put the handlerComponent as "Done"
how to say to it that it has already answered ?

kind elbow
#

Welp
You need to respond to the interaction

#

So either RespondAsync or DeferAsync

vale pagoda
#

ok, I can respond something null ? or void ?

kind elbow
#

There are 2 real ways of doing this

#

You can do a DeferAsync() with ephemeral set to true

#

Or you could just respond with an ephemeral message => visible only to the user who clicked the button