rename slashCommandOptions to options, and permission to permissions

This commit is contained in:
Noah committed 2021-12-18 18:57:26 -06:00
1 parent bc649caa99
commit 4e554b8bee
10 files changed
+21 -27

No files matched your search

+3 -9
View File
@@ -3,22 +3,16 @@
const fs = require("fs");
const Discord = require("discord.js");
const yaml = require("js-yaml");
const supportbot = yaml.load(
fs.readFileSync("./Configs/supportbot.yml", "utf8")
);
function RunFunction(interaction) {}
class Command {
constructor(options) {
this.name = options.name;
this.description = options.description;
this.permission = options.permission;
this.slashCommandOptions = options.slashCommandOptions || [];
this.permissions = options.permissions;
this.options = options.options || [];
this.run = options.run;
this.defaultPermission = true;
}
}