How can I provide bot’s send message to channel which the channel is setted with
quick.db
?I tried this:
const DB = require('quick.db') let channel = DB.fetch(`channel_${message.guild.id}`) channel.send('Hello!')
But it hasn’t worked.
How can I provide bot’s send message to channel which the channel is setted with
quick.db
?I tried this:
const DB = require('quick.db') let channel = DB.fetch(`channel_${message.guild.id}`) channel.send('Hello!')
But it hasn’t worked.
const DB = require('quick.db')
let channel = client.channels.get(DB.fetch(`channel_${message.guild.id}`))
channel.send('Hello!')
try it.
You have to fetch the channel first, since “123456789990”.send(‘Hello’!) Isnt proper syntax, but thats what you’re executing.