mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 08:11:50 +00:00
Add StreamDispatcher#start event
This commit is contained in:
parent
aa5df43c50
commit
8f1216d9a5
2 changed files with 6 additions and 1 deletions
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue