OneBotImage
可用于发送。
序列化
Base64 encoder
在序列化并反序列化后,之前通过 AdditionalParams.base64Encoder 指定的 Base64Encoder 可能会丢失。 如果丢失后再次需要使用 Base64Encoder 时,会选择使用 Base64Encoder.Default。
Author
ForteScarlet
Types
Link copied to clipboard
class AdditionalParams
用于 OneBotImage 提供的部分工厂函数中, 指定 Data 中部分属性或一些有用的额外参数。
Link copied to clipboard
Link copied to clipboard
Inherited functions
Link copied to clipboard
将事件中接收到的 OneBotMessageSegment 解析为 Message.Element。
Link copied to clipboard
将 OneBotMessageSegment 转化或包装为 OneBotMessageSegmentElement。 这并不是在收到消息时用于转换类型的直接方法, 而是 OneBotMessageSegment.resolveToMessageElement —— 后者会将一些与标准消息元素无差别的类型直接转为标准消息类型, 例如将 OneBotAt 转为 At 或 AtAll、OneBotFace 转为 Face。