Skip to content

Commit

Permalink
docs(Client): Correct invite gateway permission checks (#9597)
Browse files Browse the repository at this point in the history
docs: correct invite gateway permission checks
  • Loading branch information
Jiralite authored May 26, 2023
1 parent 53aa24d commit e1b6eee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
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

0 comments on commit e1b6eee

Please sign in to comment.