Optimizing status_message.rs update

This commit is contained in:
Evann Regnault 2022-08-02 02:45:33 +02:00
parent 813de17f59
commit 6f83806e2b

View file

@ -33,6 +33,7 @@ pub async fn update_status_message(ctx: Context) {
let embeds = create_status_embed().await;
for sm in x {
if sm.guild_id == 0 {continue;}
let msg = ChannelId::from(sm.channel_id as u64).message(&ctx.http, sm.message_id as u64).await;
match msg {
Ok(mut m) => {