mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +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);
|
this._setSpeaking(true);
|
||||||
|
|
||||||
if (!data.startTime) {
|
if (!data.startTime) {
|
||||||
|
/**
|
||||||
|
* Emitted once the dispatcher starts streaming
|
||||||
|
* @event StreamDispatcher#start
|
||||||
|
*/
|
||||||
|
this.emit('start');
|
||||||
data.startTime = Date.now();
|
data.startTime = Date.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user