Skip to content

fix(faq): update faq/ping snippet to use withResponse #1628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 15, 2025

Conversation

aolsen07
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
The method of measuring a bot's roundtrip ping contained a code snippet that is incorrect. Since the reply() call doesn't use withResponse, sent comes back as undefined and gives an error. Updating the snippet to better utilize the InteractionCallback can make this correct.

Also, it may be worth it to link to the InteractionCallbackResponse class in the blurb above.

@Jiralite Jiralite merged commit 9d4454e into discordjs:main Jun 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants