vowxky
vowxky
DIAdiscord.js - Imagine an app
Created by vowxky on 10/21/2023 in #djs-questions
When i send a message it repeat always
client.on(Events.MessageCreate , message => {
if (message.channel.id === channelid) {
const channel = client.channels.cache.get(channelid);
channel.send(message.content);
}

})
client.on(Events.MessageCreate , message => {
if (message.channel.id === channelid) {
const channel = client.channels.cache.get(channelid);
channel.send(message.content);
}

})
When I send a message it stays in an infinite loop sending the same message
4 replies