chore: bump twilight

This commit is contained in:
alyssa 2025-04-04 12:20:15 +00:00
parent 2710d1fb2b
commit 19616b6bbb
4 changed files with 1617 additions and 926 deletions

2514
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -25,14 +25,14 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3.16", features = ["env-filter", "json"] } tracing-subscriber = { version = "0.3.16", features = ["env-filter", "json"] }
uuid = { version = "1.7.0", features = ["serde"] } uuid = { version = "1.7.0", features = ["serde"] }
twilight-gateway = { git = "https://github.com/pluralkit/twilight" } twilight-gateway = { git = "https://github.com/pluralkit/twilight", branch = "pluralkit-fb4f590" }
twilight-cache-inmemory = { git = "https://github.com/pluralkit/twilight", features = ["permission-calculator"] } twilight-cache-inmemory = { git = "https://github.com/pluralkit/twilight", branch = "pluralkit-fb4f590", features = ["permission-calculator"] }
twilight-util = { git = "https://github.com/pluralkit/twilight", features = ["permission-calculator"] } twilight-util = { git = "https://github.com/pluralkit/twilight", branch = "pluralkit-fb4f590", features = ["permission-calculator"] }
twilight-model = { git = "https://github.com/pluralkit/twilight" } twilight-model = { git = "https://github.com/pluralkit/twilight", branch = "pluralkit-fb4f590" }
twilight-http = { git = "https://github.com/pluralkit/twilight", default-features = false, features = ["rustls-native-roots"] } twilight-http = { git = "https://github.com/pluralkit/twilight", branch = "pluralkit-fb4f590", default-features = false, features = ["rustls-aws_lc_rs", "rustls-native-roots"] }
#twilight-gateway = { path = "../twilight/twilight-gateway" } # twilight-gateway = { path = "../twilight/twilight-gateway" }
#twilight-cache-inmemory = { path = "../twilight/twilight-cache-inmemory", features = ["permission-calculator"] } # twilight-cache-inmemory = { path = "../twilight/twilight-cache-inmemory", features = ["permission-calculator"] }
#twilight-util = { path = "../twilight/twilight-util", features = ["permission-calculator"] } # twilight-util = { path = "../twilight/twilight-util", features = ["permission-calculator"] }
#twilight-model = { path = "../twilight/twilight-model" } # twilight-model = { path = "../twilight/twilight-model" }
#twilight-http = { path = "../twilight/twilight-http", default-features = false, features = ["rustls-native-roots"] } # twilight-http = { path = "../twilight/twilight-http", default-features = false, features = ["rustls-aws_lc_rs", "rustls-native-roots"] }

View file

@ -476,12 +476,14 @@ impl DiscordCache {
system_channel_flags: guild.system_channel_flags(), system_channel_flags: guild.system_channel_flags(),
system_channel_id: guild.system_channel_id(), system_channel_id: guild.system_channel_id(),
threads: vec![], threads: vec![],
unavailable: false, unavailable: Some(false),
vanity_url_code: guild.vanity_url_code().map(ToString::to_string), vanity_url_code: guild.vanity_url_code().map(ToString::to_string),
verification_level: guild.verification_level(), verification_level: guild.verification_level(),
voice_states: vec![], voice_states: vec![],
widget_channel_id: guild.widget_channel_id(), widget_channel_id: guild.widget_channel_id(),
widget_enabled: guild.widget_enabled(), widget_enabled: guild.widget_enabled(),
guild_scheduled_events: guild.guild_scheduled_events().to_vec(),
max_stage_video_channel_users: guild.max_stage_video_channel_users(),
} }
}) })
} }

View file

@ -183,10 +183,7 @@ pub async fn runner(
match event { match event {
Event::InteractionCreate(_) => {} Event::InteractionCreate(_) => {}
Event::MessageCreate(ref m) if m.author.id != our_user_id => {} Event::MessageCreate(ref m) if m.author.id != our_user_id => {}
Event::MessageUpdate(ref m) Event::MessageUpdate(ref m) if m.author.id != our_user_id && !m.author.bot => {}
if let Some(author) = m.author.clone()
&& author.id != our_user_id
&& !author.bot => {}
Event::MessageDelete(_) => {} Event::MessageDelete(_) => {}
Event::MessageDeleteBulk(_) => {} Event::MessageDeleteBulk(_) => {}
Event::ReactionAdd(ref r) if r.user_id != our_user_id => {} Event::ReactionAdd(ref r) if r.user_id != our_user_id => {}