mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
14 lines
343 B
TypeScript
14 lines
343 B
TypeScript
import { GetFileBase } from './GetFile'
|
|
import { ActionName } from '../types'
|
|
|
|
export default class GetImage extends GetFileBase {
|
|
actionName = ActionName.GetImage
|
|
|
|
protected async _handle(payload: { file: string }) {
|
|
if (!payload.file) {
|
|
throw new Error('参数 file 不能为空')
|
|
}
|
|
return super._handle(payload)
|
|
}
|
|
}
|