Skip to content

Config Bypass for CanSendResponse#2932

Merged
Misha-133 merged 9 commits into
discord-net:devfrom
WhyNot180:dev
May 16, 2024
Merged

Config Bypass for CanSendResponse#2932
Misha-133 merged 9 commits into
discord-net:devfrom
WhyNot180:dev

Conversation

@WhyNot180

Copy link
Copy Markdown
Contributor

Description

This adds an option in the config to easily bypass the internal time check on responses. This should be useful for use in a dev environment where latency issues are more prevalent.

This check is a little redundant, since Discord will refuse a late request anyways, but this should allow for a little more leeway without making too many changes.

Changes

  • Adds ResponseInternalTimeCheck bool to DiscordConfig and BaseDiscordClient
  • Adds check to each use of InteractionHelper.CanSendResponse

Related Issues

@Misha-133 Misha-133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants