feat: easier guards for channelUpdate (#5716)

* feat: easier guards for channelUpdate

* typings: more explicit typings for client events involving channels

* docs: event doc consistency regarding channel types
This commit is contained in:
Souji
2021-05-31 17:38:37 +02:00
committed by GitHub
parent 652c683da7
commit d52bcd46ec
3 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ class TypingStart extends Action {
/**
* Emitted whenever a user starts typing in a channel.
* @event Client#typingStart
* @param {Channel} channel The channel the user started typing in
* @param {DMChannel|TextChannel|NewsChannel} channel The channel the user started typing in
* @param {User} user The user that started typing
*/
this.client.emit(Events.TYPING_START, channel, user);