Fixing previous optimisation by checking the right property
This commit is contained in:
parent
6f83806e2b
commit
c31ced4945
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ pub async fn update_status_message(ctx: Context) {
|
||||||
|
|
||||||
let embeds = create_status_embed().await;
|
let embeds = create_status_embed().await;
|
||||||
for sm in x {
|
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;
|
let msg = ChannelId::from(sm.channel_id as u64).message(&ctx.http, sm.message_id as u64).await;
|
||||||
match msg {
|
match msg {
|
||||||
Ok(mut m) => {
|
Ok(mut m) => {
|
||||||
|
|
Loading…
Reference in a new issue