Skip to content
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

Edit the message the bot sends in ping.ts #33

Merged
merged 1 commit into from
Dec 30, 2023
Merged

Edit the message the bot sends in ping.ts #33

merged 1 commit into from
Dec 30, 2023

Conversation

yorunoken
Copy link
Contributor

In message-commands/ping.ts, the code attempts to edit the message the author sent, resulting in an error on line 12.
This pr fixes that bug

@xhyrom
Copy link
Owner

xhyrom commented Dec 30, 2023

Does this also work for interaction(slash) command?

@yorunoken
Copy link
Contributor Author

yorunoken commented Dec 30, 2023

Does this also work for interaction(slash) command?

you don't need it for interaction commands. interaction.editReply() works just fine, as the interaction message already belongs to the bot.

@xhyrom
Copy link
Owner

xhyrom commented Dec 30, 2023

Ohh, i see, it's in src/message-commands/ping.ts i was just confused by my framework. Thanks!

@xhyrom xhyrom merged commit 89a7c59 into xhyrom:main Dec 30, 2023
1 check failed
xhyrom

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants