From b7bdbf39772722eb55fe3de5507780e4d4579240 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Tue, 7 Sep 2021 17:13:40 +0200 Subject: [PATCH] fixed registration issue --- src/structures/BaseCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/BaseCommand.ts b/src/structures/BaseCommand.ts index f514482..d6157a1 100644 --- a/src/structures/BaseCommand.ts +++ b/src/structures/BaseCommand.ts @@ -112,7 +112,7 @@ export class BaseCommand { public toObject(): BaseCommandObject { const obj: BaseCommandObject = { name: this.name, - type: this.type === "MESSAGE" ? 2 : this.type === "USER" ? 3 : 1, + type: this.type === "MESSAGE" ? 3 : this.type === "USER" ? 2 : 1, default_permissions: true, }; return obj;