have a discord bot send a message code example
Example 1: how to send a message to a discord server using a bot
const channel = client.channels.cache.get(channel => channel.name === 'the channel name')
channel.send(message)
Example 2: how to make a discord bot send a message
message.channel.send("This is a Message")