Send message to channel

Hello, I’m creating a Discord bot. How I can send message to log channel which setted with quick.db?

First, db.fetch() the id of the channel for logs, then use that is to .send() the log message

Will this code works?

Channel's set code:
let channel = message.mentions.channels.first()
if (channel) {
  message.channel.send('Mission completed.')
  db.set(`channel_${message.guild.id}`, channel)
}
Send message to channel code:

let channel = db.fetch(`channel_${message.guild.id}`)
client.channels.get(channel).send('Hello!')

.get () only takes ID not an object. Therefore put .get (channel.id)

Thanks you very much, I’ll try this code.