mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
chore: bump twilight
This commit is contained in:
parent
2710d1fb2b
commit
19616b6bbb
4 changed files with 1617 additions and 926 deletions
2514
Cargo.lock
generated
2514
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
20
Cargo.toml
20
Cargo.toml
|
|
@ -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"] }
|
||||||
|
|
|
||||||
|
|
@ -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(),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 => {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue