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:
@@ -11,8 +11,8 @@ describe('SpeakingMap', () => {
|
||||
const starts: string[] = [];
|
||||
const ends: string[] = [];
|
||||
|
||||
speaking.on('start', (userId: string) => void starts.push(userId));
|
||||
speaking.on('end', (userId: string) => void ends.push(userId));
|
||||
speaking.on('start', (userId) => void starts.push(userId));
|
||||
speaking.on('end', (userId) => void ends.push(userId));
|
||||
|
||||
for (let i = 0; i < 10; i++) {
|
||||
speaking.onPacket(userId);
|
||||
|
||||
Reference in New Issue
Block a user