From ae5795a7ea035504f0f49f9d266a3ab602f741a7 Mon Sep 17 00:00:00 2001 From: jude Date: Mon, 31 Jul 2023 19:25:06 +0100 Subject: [PATCH] Update opcode handling --- postman/src/sender.rs | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/postman/src/sender.rs b/postman/src/sender.rs index 60392ed..3f300fa 100644 --- a/postman/src/sender.rs +++ b/postman/src/sender.rs @@ -684,15 +684,11 @@ WHERE 50001 => { self.log_error( pool, - "Could not be sent as permissions are invalid", + "Could not be sent as missing access", None::<&'static str>, ) .await; - self.set_failed( - pool, - "Could not be sent as permissions are invalid", - ) - .await; + self.set_failed(pool, "Could not be sent as missing access").await; } 50007 => { self.log_error( @@ -704,6 +700,19 @@ WHERE self.set_failed(pool, "Could not be sent as user has DMs disabled") .await; } + 50013 => { + self.log_error( + pool, + "Could not be sent as permissions are invalid", + None::<&'static str>, + ) + .await; + self.set_failed( + pool, + "Could not be sent as permissions are invalid", + ) + .await; + } _ => { self.log_error( pool,