Skip to content

Commit 699c63e

Browse files
committed
chore: address TODO
1 parent 16581df commit 699c63e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ class VoiceChannelEffect {
3131
*/
3232
this.emoji = data.emoji ? new Emoji(guild.client, data.emoji) : null;
3333

34-
// TODO: Revise after discord-api-types.
3534
/**
3635
* The animation type of the effect.
37-
* @type {?number}
36+
* @type {?VoiceChannelEffectSendAnimationType}
3837
*/
3938
this.animationType = data.animation_type ?? null;
4039

packages/discord.js/src/util/APITypes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,11 @@
589589
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/VideoQualityMode}
590590
*/
591591

592+
/**
593+
* @external VoiceChannelEffectSendAnimationType
594+
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/VoiceChannelEffectSendAnimationType}
595+
*/
596+
592597
/**
593598
* @external WebhookType
594599
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/WebhookType}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ import {
166166
GuildScheduledEventRecurrenceRuleFrequency,
167167
GatewaySendPayload,
168168
GatewayDispatchPayload,
169+
VoiceChannelEffectSendAnimationType,
169170
} from 'discord-api-types/v10';
170171
import { ChildProcess } from 'node:child_process';
171172
import { EventEmitter } from 'node:events';
@@ -3562,8 +3563,7 @@ export class VoiceChannelEffect {
35623563
public channelId: Snowflake;
35633564
public userId: Snowflake;
35643565
public emoji: Emoji | null;
3565-
// TODO: Revise after discord-api-types.
3566-
public animationType: 0 | 1 | null;
3566+
public animationType: VoiceChannelEffectSendAnimationType | null;
35673567
public animationId: number | null;
35683568
public soundId: Snowflake | number | null;
35693569
public soundVolume: number | null;

0 commit comments

Comments
 (0)