Fixing previous optimisation by checking the right property

This commit is contained in:
Evann Regnault 2022-08-02 02:48:43 +02:00
parent 6f83806e2b
commit c31ced4945

View file

@ -33,7 +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;}
if sm.channel_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) => {