Update opcode handling
This commit is contained in:
parent
ee36c38eda
commit
ae5795a7ea
@ -684,15 +684,11 @@ WHERE
|
|||||||
50001 => {
|
50001 => {
|
||||||
self.log_error(
|
self.log_error(
|
||||||
pool,
|
pool,
|
||||||
"Could not be sent as permissions are invalid",
|
"Could not be sent as missing access",
|
||||||
None::<&'static str>,
|
None::<&'static str>,
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
self.set_failed(
|
self.set_failed(pool, "Could not be sent as missing access").await;
|
||||||
pool,
|
|
||||||
"Could not be sent as permissions are invalid",
|
|
||||||
)
|
|
||||||
.await;
|
|
||||||
}
|
}
|
||||||
50007 => {
|
50007 => {
|
||||||
self.log_error(
|
self.log_error(
|
||||||
@ -704,6 +700,19 @@ WHERE
|
|||||||
self.set_failed(pool, "Could not be sent as user has DMs disabled")
|
self.set_failed(pool, "Could not be sent as user has DMs disabled")
|
||||||
.await;
|
.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(
|
self.log_error(
|
||||||
pool,
|
pool,
|
||||||
|
Loading…
Reference in New Issue
Block a user