Skip to content

Commit

Permalink
docs: Redirect to events correctly (#6845)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Oct 15, 2021
1 parent 12ab5c8 commit 38cc89e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/client/actions/InteractionCreate.js
Expand Up @@ -69,7 +69,7 @@ class InteractionCreateAction extends Action {
* Emitted when an interaction is created.
* @event Client#interaction
* @param {Interaction} interaction The interaction which was created
* @deprecated Use {@link Client#interactionCreate} instead
* @deprecated Use {@link Client#event:interactionCreate} instead
*/
if (client.emit('interaction', interaction) && !deprecationEmitted) {
deprecationEmitted = true;
Expand Down
2 changes: 1 addition & 1 deletion src/client/actions/MessageCreate.js
Expand Up @@ -26,7 +26,7 @@ class MessageCreateAction extends Action {
* Emitted whenever a message is created.
* @event Client#message
* @param {Message} message The created message
* @deprecated Use {@link Client#messageCreate} instead
* @deprecated Use {@link Client#event:messageCreate} instead
*/
if (client.emit('message', message) && !deprecationEmitted) {
deprecationEmitted = true;
Expand Down
5 changes: 3 additions & 2 deletions src/structures/InteractionCollector.js
Expand Up @@ -19,8 +19,9 @@ const { InteractionTypes, MessageComponentTypes } = require('../util/Constants')

/**
* Collects interactions.
* Will automatically stop if the message ({@link Client#messageDelete messageDelete}),
* channel ({@link Client#channelDelete channelDelete}), or guild ({@link Client#guildDelete guildDelete}) is deleted.
* Will automatically stop if the message ({@link Client#event:messageDelete messageDelete}),
* channel ({@link Client#event:channelDelete channelDelete}), or
* guild ({@link Client#event:guildDelete guildDelete}) is deleted.
* @extends {Collector}
*/
class InteractionCollector extends Collector {
Expand Down

0 comments on commit 38cc89e

Please sign in to comment.