delete message on ready event
i tried to exclude a message in event.js but that just doesn't work
my error:
the interaction it's on parameters of my module.exports
my error:
the interaction it's on parameters of my module.exports
TypeError: Cannot read properties of undefined (reading 'messages')module.exports = async (client, interaction) => {
...interaction.channel.messages.fetch(messageid)
.then(message => { message.delete() })
.catch(() => { return; });