From 89f1bdb2daeb8581965c6ff57922bd412527705d Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Sat, 14 Oct 2023 10:43:02 +0200 Subject: [PATCH] Event updates via the scientific method --- src/types/events/voice.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types/events/voice.rs b/src/types/events/voice.rs index 2618ee1..cb258fc 100644 --- a/src/types/events/voice.rs +++ b/src/types/events/voice.rs @@ -34,7 +34,8 @@ impl WebSocketEvent for VoiceStateUpdate {} /// Received to indicate which voice endpoint, token and guild_id to use; pub struct VoiceServerUpdate { pub token: String, - pub guild_id: Snowflake, + /// Can be None in dm calls + pub guild_id: Option, pub endpoint: Option, }