mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
types(voice): bring back typed events (#8109)
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
import { EventEmitter } from 'node:events';
|
||||
|
||||
export interface SpeakingMap extends EventEmitter {
|
||||
/**
|
||||
* Emitted when a user starts/stops speaking.
|
||||
* @event
|
||||
*/
|
||||
on: (event: 'start' | 'end', listener: (userId: string) => void) => this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tracks the speaking states of users in a voice channel.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user