#Commands are executed, but they aren't responding

1 messages · Page 1 of 1 (latest)

wraith surge
#

Hello! I'm coding my bot with .net and this library. I used dependency injection to set everything up, and so far everything works great. As I am fairly new to dependency injection and that stuff, it is a great practise. The documentation is well done and has helped me good to get started.

So far, everything looks and works great, but the only thing that doesn't appear to function properly is responding to slash commands. In the debugger, my breakpoint sets in the slash commands method body, that is in my module. However, the "DeferAsync" or the "ModifyOriginalMessageAsync" method don't seem to do anything.

Anyone has suggestions, on how I can fix this issue?

wet turret
#

Sync your system time

wraith surge
#

sync my system time?

wraith surge
wet turret
#

❤️

wraith surge
#

Ok, one last question, even though my problem is solved, but I asked myself this. Why do i need to sync my system time? I have had this multiple times now, where I was forced to sync the time in order for the bot to respond.

rapid wasp
#

you have to send initial response to an interaction in 3 secs after it 's created

#

The token is invalidated otherwise

#

so d.net checks if 3 seconds have passed so it doesn't send invalid requests