From d3ef3f4b08174f5684c71efe863be1ec1ec7b8a2 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Sun, 5 Sep 2021 18:02:06 +0200 Subject: [PATCH] Created UserCommand context menu --- src/structures/UserCommand.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/structures/UserCommand.ts diff --git a/src/structures/UserCommand.ts b/src/structures/UserCommand.ts new file mode 100644 index 0000000..7a8768b --- /dev/null +++ b/src/structures/UserCommand.ts @@ -0,0 +1,15 @@ +import { BaseCommandInit } from "../types/BaseCommand.js"; +import { BaseCommand } from "./BaseCommand.js"; + +export class UserCommand extends BaseCommand { + constructor(o: BaseCommandInit) { + super("USER", { + name: o.name, + announceSuccess: o.announceSuccess, + function: o.function, + guilds: o.guilds, + permissionCheck: o.permissionCheck, + permissions: o.permissions, + }); + } +}