v2.5.0 first push

This commit is contained in:
DJj123dj
2022-08-10 19:35:10 +02:00
parent 8aee358081
commit 034247ea99
35 changed files with 844 additions and 317 deletions
@@ -0,0 +1,35 @@
const discord = require('discord.js')
const bot = require('../../../index')
const client = bot.client
const config = bot.config
const l = bot.language
const log = bot.errorLog.log
const getconfigoptions = require("../../getoptions")
const storage = bot.storage
const hiddendata = bot.hiddenData
const embed = discord.EmbedBuilder
const mc = config.main_color
const button = discord.ButtonBuilder
const arb = discord.ActionRowBuilder
const bs = discord.ButtonStyle
module.exports = () => {
//CLOSE
client.on("interactionCreate",interaction => {
if (!interaction.isButton()) return
if (interaction.customId != "OTcloseTicket") return
interaction.deferUpdate()
interaction.message.edit({components:[bot.buttons.verifybars.closeVerifyBar]})
})
client.on("interactionCreate",interaction => {
if (!interaction.isButton()) return
if (interaction.customId != "OTcloseTicketFalse") return
interaction.deferUpdate()
interaction.message.edit({components:[bot.buttons.close.openRowNormal]})
})
}