initial commit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,12 @@
|
||||
const included = require("../../requires")
|
||||
|
||||
|
||||
module.exports = {
|
||||
name:"buttonClick",
|
||||
event:true,
|
||||
async function(button){
|
||||
|
||||
|
||||
// button.reply.defer()
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user