My logging command needs a channel to send messages, I do this with a >logging #channel-here
command, it stores on better-sqlite3, my issue is I am not sure on how to read the contents and convert it to a channel.
I have been working on this for several days, and I have tried several different things, this was my latest attempt
const id = sql.prepare(`SELECT channel FROM logging WHERE guildid = ${message.guild.id};`).get();
const logs = client.channels.get(id);
if (!logs) return;
logs.send(`A message was deleted`);
const logs =
needs to =
the channel id that you see in the channel record if the guildid record matches the one that the message was deleted in.