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

refactor(Client): remove applicationCommand events #6492

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

ImRodry
Copy link
Contributor

@ImRodry ImRodry commented Aug 21, 2021

Please describe the changes this PR makes and why it should be merged:
This PR removes applicationCommand events as a Discord developer said they were not meant to be sent to bots (discord/discord-api-docs#3690 (comment)). This can be a semver minor since the events never fired anyway.
Upstream PR:

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

Copy link
Member

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

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

You have missed these:

* * APPLICATION_COMMAND_CREATE
* * APPLICATION_COMMAND_DELETE
* * APPLICATION_COMMAND_UPDATE

'APPLICATION_COMMAND_CREATE',
'APPLICATION_COMMAND_DELETE',
'APPLICATION_COMMAND_UPDATE',

discord.js/typings/index.d.ts

Lines 4684 to 4686 in e87324e

| 'APPLICATION_COMMAND_CREATE'
| 'APPLICATION_COMMAND_DELETE'
| 'APPLICATION_COMMAND_UPDATE'

Copy link
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

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

LGTM after Jiralite's comments are resolved

@ImRodry
Copy link
Contributor Author

ImRodry commented Aug 21, 2021

Sorry I fixed and forgot to push xD

@ImRodry ImRodry force-pushed the refactor-remove-command-events branch from 1395e87 to f0f1198 Compare October 10, 2021 15:20
@iCrawl iCrawl added the discord label Oct 26, 2021
@ImRodry ImRodry force-pushed the refactor-remove-command-events branch 2 times, most recently from 99e3507 to 9da1357 Compare November 7, 2021 10:28
@iCrawl
Copy link
Member

iCrawl commented Dec 22, 2021

This needs a rebase.

@ImRodry ImRodry force-pushed the refactor-remove-command-events branch from 9da1357 to 944a1b9 Compare December 22, 2021 16:26
@ImRodry ImRodry force-pushed the refactor-remove-command-events branch from 944a1b9 to 6a56fcf Compare January 7, 2022 19:07
@iCrawl iCrawl merged commit 6085b4f into discordjs:main Jan 7, 2022
@ImRodry ImRodry deleted the refactor-remove-command-events branch January 7, 2022 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants