import define from "../../define.js";
import { cancelMatch } from "../../../../services/shogi/index.js";
export const meta = {
    tags: [
        "shogi"
    ],
    requireCredential: true,
    kind: "write:account"
};
export const paramDef = {
    type: "object",
    properties: {
        userId: {
            type: "string",
            format: "misskey:id",
            nullable: true
        }
    },
    required: []
};
export default define(meta, paramDef, async (ps, user)=>{
    await cancelMatch(user, ps.userId);
});
