I'm trying to make a command that sends a message to every channel id stored using quick.db
db.set(`channelID_${message.guıld.ıd}`, message.channel.id)
so this is how i would store channel id is there a possible way to send a message to every channelID stored using this i have been trying and failed
EDIT: I tried to do it using
const channelIDs = db.all()
.filter(e => e.ID.startsWith("channeltest"));
channelIDs.forEach(async (id) => {
try {
const channel = await client.channels.fetch(id);
channel.send('test');
}
});
getting error channel_id: Value "[object Object]" is not snowflake.