mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Right exception when bot was muted
This commit is contained in:
parent
fc8fd70014
commit
b3112dada3
@ -157,7 +157,7 @@ internal abstract class SendMessageHandler<C : Contact> {
|
|||||||
}
|
}
|
||||||
if (resp is MessageSvcPbSendMsg.Response.Failed) {
|
if (resp is MessageSvcPbSendMsg.Response.Failed) {
|
||||||
val contact = contact
|
val contact = contact
|
||||||
when (resp.errorCode) {
|
when (resp.resultType) {
|
||||||
120 -> if (contact is Group) throw BotIsBeingMutedException(contact)
|
120 -> if (contact is Group) throw BotIsBeingMutedException(contact)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user