initial commit

This commit is contained in:
Aiden
2022-10-07 14:31:30 +02:00
parent b8b1aee4e6
commit f06f277329
18 changed files with 2606 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
// const included = require(`../../requires`)
/*
DO NOT FORGET TO ADD EVERY SINGLE EVENT ADDED HERE TO THE REMOVELISTENER ARRAY
*/
client.removeAllListeners("interactionCreate")
client.on("interactionCreate", async (interaction) => {
if(interaction.isCommand()){
commands.get("onSlashCommand").function(interaction)
}
})
+12
View File
@@ -0,0 +1,12 @@
const included = require("../../requires")
module.exports = {
name:"buttonClick",
event:true,
async function(button){
// button.reply.defer()
}
}
+14
View File
@@ -0,0 +1,14 @@
const included = require("../../requires")
module.exports = {
name:"onSlashCommand",
event:true,
async function(interaction){
// console.log(interaction)
if(commands.get(interaction.commandName)){
// interaction.reply("a", {ephermal:true})
commands.get(interaction.commandName).function(interaction)
}
}
}