v2.4.0 push 1

This commit is contained in:
DJj123dj
2022-07-26 12:25:33 +02:00
parent 512e564c60
commit 6b32fc9d5d
11 changed files with 134 additions and 59 deletions
+3
View File
@@ -4,6 +4,7 @@ const client = bot.client
const config = bot.config
const log = bot.errorLog.log
const l = bot.language
const permsChecker = require("../core/utils/permisssionChecker")
module.exports = () => {
client.on("messageCreate",msg => {
@@ -37,6 +38,8 @@ module.exports = () => {
if (!interaction.isChatInputCommand()) return
if (interaction.commandName != "close") return
interaction.deferReply()
interaction.channel.messages.fetchPinned().then(msglist => {
var firstmsg = msglist.last()