MessageAuditedException

消息被审核' 异常。 当推送、回复消息时响应的 code 错误码为 304023304024 时会在响应数据包 data 中返回 MessageAudit 审核消息的信息, 例如:

{
"code": 304023,
"message": "push message is waiting for audit now",
"data": {
"message_audit": {
"audit_id": "50db3d4b-9589-4497-9a1e-75e5532262ba"
}
}
}

data 则会被包装为 MessageAuditedId 并通过 MessageAuditedException 抛出。

详见文档 发送消息 中的相关描述。

Author

ForteScarlet

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

响应中得到的消息审核信息。

Inherited properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard
val value: Int

Inherited functions

Link copied to clipboard
inline fun <T> QQGuildApiException.ifNotFoundThen(throwCopy: Boolean = true, value: () -> T): T

如果 QQGuildApiException.isNotFoundtrue, 得到null,否则抛出此异常

Link copied to clipboard
inline fun QQGuildApiException.ifNotFoundThenNoSuch(throwCopy: Boolean = true, value: () -> String): Nothing

如果 QQGuildApiException.isNotFoundtrue, 得到null,否则抛出此异常

Link copied to clipboard
inline fun <T> QQGuildApiException.ifNotFoundThenNull(throwCopy: Boolean = true): T?

如果 QQGuildApiException.isNotFoundtrue, 得到null,否则抛出此异常