docs: move event docstrings to the emitting line of code

This commit is contained in:
SpaceEEC
2018-11-27 21:28:36 +01:00
parent 1d1b3f25e1
commit fd21bbb7bf
21 changed files with 109 additions and 103 deletions

View File

@@ -27,16 +27,16 @@ class VoiceStateUpdate extends Action {
client.emit('self.voiceStateUpdate', data);
}
/**
* Emitted whenever a member changes voice state - e.g. joins/leaves a channel, mutes/unmutes.
* @event Client#voiceStateUpdate
* @param {?VoiceState} oldState The voice state before the update
* @param {VoiceState} newState The voice state after the update
*/
client.emit(Events.VOICE_STATE_UPDATE, oldState, newState);
}
}
}
/**
* Emitted whenever a member changes voice state - e.g. joins/leaves a channel, mutes/unmutes.
* @event Client#voiceStateUpdate
* @param {?VoiceState} oldState The voice state before the update
* @param {VoiceState} newState The voice state after the update
*/
module.exports = VoiceStateUpdate;