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

docs(Client): Correct invite gateway permission checks #9597

Merged
merged 1 commit into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/discord.js/src/client/actions/InviteCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class InviteCreateAction extends Action {

/**
* Emitted when an invite is created.
* <info>This event requires either the {@link PermissionFlagsBits.ManageGuild} permission or the
* {@link PermissionFlagsBits.ManageChannels} permission for the channel.</info>
* <info>This event requires the {@link PermissionFlagsBits.ManageChannels} permission for the channel.</info>
* @event Client#inviteCreate
* @param {Invite} invite The invite that was created
*/
Expand Down
3 changes: 1 addition & 2 deletions packages/discord.js/src/client/actions/InviteDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class InviteDeleteAction extends Action {

/**
* Emitted when an invite is deleted.
* <info>This event requires either the {@link PermissionFlagsBits.ManageGuild} permission or the
* {@link PermissionFlagsBits.ManageChannels} permission for the channel.</info>
* <info>This event requires the {@link PermissionFlagsBits.ManageChannels} permission for the channel.</info>
* @event Client#inviteDelete
* @param {Invite} invite The invite that was deleted
*/
Expand Down