nyxx-discord / nyxx_commands

A framework for easily creating slash commands and text commands for Discord using the nyxx library.
Apache License 2.0
13 stars 5 forks source link

Account for context creation time in auto acknowledge #100

Closed abitofevrything closed 1 year ago

abitofevrything commented 1 year ago

Description

Creating a context in nyxx_commands can trigger API requests that take time to complete. The timer for auto acknowledge is only started after those requests complete, so even an auto timeout of less than three seconds can result in failure.

This PR changes the behaviour to account for this case.

Type of change

Checklist: