Skip to content

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.

1 participant