Fixed panicking on missing permissions
This commit is contained in:
parent
5533527979
commit
813de17f59
1 changed files with 5 additions and 2 deletions
|
@ -37,9 +37,12 @@ pub async fn update_status_message(ctx: Context) {
|
|||
match msg {
|
||||
Ok(mut m) => {
|
||||
let copies = copy_embed(&embeds);
|
||||
m.edit(&ctx.http, |f| {
|
||||
match m.edit(&ctx.http, |f| {
|
||||
f.set_embeds(copies)
|
||||
}).await.unwrap();
|
||||
}).await {
|
||||
Ok(_) => {},
|
||||
Err(e) => println!("Error while editing message {}", e)
|
||||
}
|
||||
|
||||
}
|
||||
Err(_) => {
|
||||
|
|
Loading…
Reference in a new issue