Skip to content

Commit 16581df

Browse files
committed
feat: add soundboard fields
1 parent a734685 commit 16581df

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/discord.js/src/structures/VoiceChannelEffect.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ class VoiceChannelEffect {
4343
* @type {?number}
4444
*/
4545
this.animationId = data.animation_id ?? null;
46+
47+
/**
48+
* The id of the soundboard sound for soundboard effects.
49+
* @type {?(Snowflake|number)}
50+
*/
51+
this.soundId = data.sound_id ?? null;
52+
53+
/**
54+
* The volume of the soundboard sound (0-1) for soundboard effects.
55+
* @type {?number}
56+
*/
57+
this.soundVolume = data.sound_volume ?? null;
4658
}
4759

4860
/**

packages/discord.js/typings/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3565,6 +3565,8 @@ export class VoiceChannelEffect {
35653565
// TODO: Revise after discord-api-types.
35663566
public animationType: 0 | 1 | null;
35673567
public animationId: number | null;
3568+
public soundId: Snowflake | number | null;
3569+
public soundVolume: number | null;
35683570
public get channel(): VoiceChannel | null;
35693571
}
35703572

0 commit comments

Comments
 (0)