jishaku
Version:
PythonのJishakuをパクった
22 lines (21 loc) • 686 B
TypeScript
import { Client, Message } from "discord.js";
import "./extends";
declare class JishakuError extends Error {
/**
*
* @param {string} message
*/
constructor(message: string);
}
declare type JishakuType = "js" | "vm2" | "sh" | "reload" | "javascript" | "shell" | "git" | "npm" | "load" | "shutdown" | "sudo" | "su" | "py" | "python";
declare class Jishaku {
client: Client;
private readonly commandDir?;
/**
*
* @param {Client} client The Discord Client
*/
constructor(client: Client, commandDir?: string);
jsk(jskType: JishakuType, code: string, message: Message): Promise<void>;
}
export { Jishaku, JishakuError, JishakuType };