Generate snowflake if not exists

This commit is contained in:
bitfl0wer 2023-11-14 16:55:23 +01:00
parent 7377187f6f
commit e0c7af0d45
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
1 changed files with 2 additions and 1 deletions

View File

@ -38,5 +38,6 @@ pub struct VoiceState {
pub self_video: bool, pub self_video: bool,
pub suppress: bool, pub suppress: bool,
pub request_to_speak_timestamp: Option<DateTime<Utc>>, pub request_to_speak_timestamp: Option<DateTime<Utc>>,
pub id: Snowflake, #[serde(default = "Snowflake::generate")]
pub id: Snowflake, // Only exists on Spacebar
} }