segment: { at: any; bface: any; dice: any; face: any; flash: any; fromCqcode: any; image: any; json: any; location: any; mirai: any; poke: any; record: any; rps: any; sface: any; share: any; text: any; video: any; xml: any } = ...
Type declaration
-
at:function
- at(qq: string | number, text?: string, dummy?: boolean): AtElem
-
Parameters
-
qq: string | number
-
Optional
text: string
-
Optional
dummy: boolean
-
bface:function
- bface(file: string, text: string): BfaceElem
-
Parameters
-
file: string
-
text: string
-
dice:function
-
face:function
-
flash:function
- flash(file: string | Buffer | Readable, cache?: boolean, timeout?: number, headers?: OutgoingHttpHeaders): FlashElem
-
Parameters
-
file: string | Buffer | Readable
-
Optional
cache: boolean
-
Optional
timeout: number
-
Optional
headers: OutgoingHttpHeaders
-
fromCqcode:function
-
image:function
- image(file: string | Buffer | Readable, cache?: boolean, timeout?: number, headers?: OutgoingHttpHeaders): ImageElem
-
Parameters
-
file: string | Buffer | Readable
-
Optional
cache: boolean
-
Optional
timeout: number
-
Optional
headers: OutgoingHttpHeaders
-
json:function
-
location:function
- location(lat: number, lng: number, address: string, id?: string): LocationElem
-
Parameters
-
lat: number
-
lng: number
-
address: string
-
Optional
id: string
-
mirai:function
-
poke:function
-
record:function
- record(file: string | Buffer): PttElem
-
-
rps:function
-
sface:function
- sface(id: number, text?: string): FaceElem
-
Parameters
-
id: number
-
Optional
text: string
-
share:function
- share(url: string, title: string, image?: string, content?: string): ShareElem
-
Parameters
-
url: string
-
title: string
-
Optional
image: string
-
Optional
content: string
-
text:function
-
video:function
-
xml:function
- xml(data: string, id?: number): XmlElem
-
Parameters
-
data: string
-
Optional
id: number
用于构造消息元素