Here is a LOG ----------
This log event want to print on my discord channel
const log_channel = "234567899876543456789987654"//Nevermind the number xD
log.event(client.channels.get(log_channel).send(log)
HELP ME PLS
Here is a LOG ----------
This log event want to print on my discord channel
const log_channel = "234567899876543456789987654"//Nevermind the number xD
log.event(client.channels.get(log_channel).send(log)
HELP ME PLS
try doing this instead
client.channels.get(‘channel_id’).send(log)
this screenshot doesn’t show the actual error, which is after that, so we can’t help you
discord channel id’s length is 18 but your id’s length 27 and i see syntax error (:
@anon43649539 I know to send messages to discord by channel but how i need to Send which was logging to console
@acarfy i dont care but i just need to send log which is displays on console
@advaith That screenshot tells a console. I need to send messages to discord which is logging to console.
if you want to send message to this channel and log this message to console;
let channel = client.channels.get("id");
let msg = await channel.send("message");
console.log(msg);
@acarfy I want to log to discord what is printing in Console Log
ONLY PRO DEVELOPERS CAN ANSWER THIS TOPIC Because its too hard to find
you can’t detect console
As @acarfy says you can not send as a message via a Discord channel what returns the console, for this you must configure your bot yourself so that it returns a value in a Discord lounge.
Yeah right my thinking is crazy lol