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

View file

@ -476,12 +476,14 @@ impl DiscordCache {
system_channel_flags: guild.system_channel_flags(),
system_channel_id: guild.system_channel_id(),
threads: vec![],
unavailable: false,
unavailable: Some(false),
vanity_url_code: guild.vanity_url_code().map(ToString::to_string),
verification_level: guild.verification_level(),
voice_states: vec![],
widget_channel_id: guild.widget_channel_id(),
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 {
Event::InteractionCreate(_) => {}
Event::MessageCreate(ref m) if m.author.id != our_user_id => {}
Event::MessageUpdate(ref m)
if let Some(author) = m.author.clone()
&& author.id != our_user_id
&& !author.bot => {}
Event::MessageUpdate(ref m) if m.author.id != our_user_id && !m.author.bot => {}
Event::MessageDelete(_) => {}
Event::MessageDeleteBulk(_) => {}
Event::ReactionAdd(ref r) if r.user_id != our_user_id => {}