This commit is contained in:
Skillz4Killz
2021-10-24 19:13:23 +00:00
committed by GitHub
parent ebdbfcf721
commit 2427a5d2c8
17 changed files with 293 additions and 211 deletions
+4 -2
View File
@@ -16,7 +16,7 @@ export function transformVoiceState(
(payload.voiceState.self_video ? 32n : 0n) |
(payload.voiceState.suppress ? 64n : 0n),
requestToSpeakTimestamp: payload.voiceState.request_to_speak_timestamp,
requestToSpeakTimestamp: payload.voiceState.request_to_speak_timestamp ? Date.parse(payload.voiceState.request_to_speak_timestamp) : undefined,
sessionId: payload.voiceState.session_id,
channelId: payload.voiceState.channel_id ? bot.transformers.snowflake(payload.voiceState.channel_id) : undefined,
@@ -27,7 +27,7 @@ export function transformVoiceState(
};
}
export interface DiscordenoVoiceState extends Omit<VoiceState, "channelId" | "guildId" | "userId" | "member"> {
export interface DiscordenoVoiceState {
/** The guild id */
guildId: bigint;
/** The channel id this user is connected to */
@@ -36,4 +36,6 @@ export interface DiscordenoVoiceState extends Omit<VoiceState, "channelId" | "gu
userId: bigint;
/** Holds all the boolean toggles. */
bitfield: bigint;
/** The time at which the user requested to speak */
requestToSpeakTimestamp?: number;
}