2 files changed, 3 insertions, 3 deletions
diff --git a/src/opcodes/instanceOf.ts b/src/opcodes/instanceOf.ts
index 7dcc95a2..c4ee5ee6 100644
--- a/src/opcodes/instanceOf.ts
+++ b/src/opcodes/instanceOf.ts
@@ -4,7 +4,7 @@ import WebSocket from "../util/WebSocket";
export function check(this: WebSocket, schema: any, data: any) {
try {
- const error = instanceOf(schema, data);
+ const error = instanceOf(schema, data, { path: "body" });
if (error !== true) {
throw error;
}
diff --git a/src/schema/VoiceStateUpdate.ts.ts b/src/schema/VoiceStateUpdate.ts.ts
index ccadda60..4345c2f6 100644
--- a/src/schema/VoiceStateUpdate.ts.ts
+++ b/src/schema/VoiceStateUpdate.ts.ts
@@ -1,5 +1,5 @@
export const VoiceStateUpdateSchema = {
- guild_id: String,
+ $guild_id: String,
channel_id: String,
self_mute: Boolean,
self_deaf: Boolean,
@@ -7,7 +7,7 @@ export const VoiceStateUpdateSchema = {
};
export interface VoiceStateUpdateSchema {
- guild_id: string;
+ guild_id?: string;
channel_id: string;
self_mute: boolean;
self_deaf: boolean;
|