docs: Redirect to events correctly (#6845)

This commit is contained in:
Jiralite
2021-10-15 23:18:13 +01:00
committed by GitHub
parent 12ab5c8878
commit 38cc89e5ae
3 changed files with 5 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;