Files
SupportBot-Dashboard/Structures/Command.js
T

23 lines
558 B
JavaScript
Raw Normal View History

2021-10-04 20:41:05 +01:00
// SupportBot | Emerald Services
// Command Structure
const fs = require("fs");
const Discord = require("discord.js");
2021-10-24 22:41:46 +01:00
const yaml = require("js-yaml");
const supportbot = yaml.load(fs.readFileSync("./Data/supportbot.yml", "utf8"));
2021-10-04 20:41:05 +01:00
2021-10-24 22:41:46 +01:00
function RunFunction(interaction) {}
2021-10-04 20:41:05 +01:00
class Command {
2021-10-24 22:41:46 +01:00
constructor(options) {
this.name = options.name;
this.description = options.description;
this.permission = options.permission;
this.slashCommandOptions = options.slashCommandOptions || [];
this.run = options.run;
}
2021-10-04 20:41:05 +01:00
}
2021-10-24 22:41:46 +01:00
module.exports = Command;