almost ready for discord.js 14!
This commit is contained in:
+1
-2
@@ -31,7 +31,7 @@ module.exports = () => {
|
||||
})
|
||||
|
||||
client.on("interactionCreate",(interaction) => {
|
||||
if (!interaction.isCommand()) return
|
||||
if (!interaction.isChatInputCommand()) return
|
||||
if (interaction.commandName != "add") return
|
||||
const user = interaction.options.getUser("user")
|
||||
|
||||
@@ -41,7 +41,6 @@ module.exports = () => {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
interaction.channel.messages.fetchPinned().then(msglist => {
|
||||
var firstmsg = msglist.last()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user