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

Bugfix/add update global command interactionbuilder #17

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ChromasIV
Copy link

The issue with Discords API is that whenever a global command exists, it will randomly throw an error saying it's already created and crash the bot.

Solution: pull all global commands then loop through each of them to check against the command being created. If it's there, to use a PATCH vs POST. (createGuildCommand vs updateGlobalCommand).

Let me know if there's a better way.

…and to use update global command PATCH instead of POST
@ChromasIV ChromasIV changed the base branch from master to develop January 9, 2023 16:25
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.

None yet

1 participant