mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add StreamDispatcher#start event
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -123,6 +123,11 @@ class StreamDispatcher extends EventEmitter {
|
||||
this._setSpeaking(true);
|
||||
|
||||
if (!data.startTime) {
|
||||
/**
|
||||
* Emitted once the dispatcher starts streaming
|
||||
* @event StreamDispatcher#start
|
||||
*/
|
||||
this.emit('start');
|
||||
data.startTime = Date.now();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user