.
This commit is contained in:
1 parent
ced29535f9
commit
491bb9ba65
3 files changed
+1
-46
No files matched your search
@@ -1,45 +0,0 @@
|
|||||||
// SupportBot | Emerald Services
|
|
||||||
// Info Command
|
|
||||||
|
|
||||||
const fs = require("fs");
|
|
||||||
|
|
||||||
const { ContainerBuilder, UserSelectMenuBuilder, ButtonStyle, MessageFlags } = require('discord.js');
|
|
||||||
const yaml = require("js-yaml");
|
|
||||||
|
|
||||||
const supportbot = yaml.load(
|
|
||||||
fs.readFileSync("./Configs/supportbot.yml", "utf8")
|
|
||||||
);
|
|
||||||
|
|
||||||
const cmdconfig = yaml.load(
|
|
||||||
fs.readFileSync("./Configs/commands.yml", "utf8")
|
|
||||||
);
|
|
||||||
|
|
||||||
const msgconfig = yaml.load(
|
|
||||||
fs.readFileSync("./Configs/messages.yml", "utf8")
|
|
||||||
);
|
|
||||||
|
|
||||||
const db = require("../../Structures/Database.js");
|
|
||||||
const Command = require("../../Structures/Command.js");
|
|
||||||
|
|
||||||
module.exports = new Command({
|
|
||||||
name: "test",
|
|
||||||
description: cmdconfig.Info.Description,
|
|
||||||
options: [],
|
|
||||||
permissions: cmdconfig.Info.Permission,
|
|
||||||
|
|
||||||
async run(interaction, client) {
|
|
||||||
|
|
||||||
const ticketPanelembed = new ContainerBuilder()
|
|
||||||
.addTextDisplayComponents(
|
|
||||||
textDisplay => textDisplay
|
|
||||||
.setContent("SupportBot"),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
await interaction.reply({
|
|
||||||
components: [ticketPanelembed],
|
|
||||||
flags: MessageFlags.IsComponentsV2,
|
|
||||||
});
|
|
||||||
|
|
||||||
},
|
|
||||||
});
|
|
||||||
@@ -1 +1 @@
|
|||||||
{}
|
|
||||||
Binary file not shown.
Reference in new issue
Block a user