fixed registration issue

This commit is contained in:
mmacierzanka committed 2021-09-07 17:13:40 +02:00
1 parent f4ffe3dda7
commit b7bdbf3977
1 file changed
+1 -1
+1 -1
View File
@@ -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;