mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Add StreamDispatcher#start event
This commit is contained in:
@@ -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