I’m trying to create a more detailed console log for my discord bot, and I wanted to log all of the messages that the bot can see. I did this so far:
client.on('message', message => {
const User = client.users.cache.get(message.author.id); // Getting the user by ID.
const Channel = client.channels.cache.get(message.channel.id); //getting the channel ID
console.log(User.tag + " in " + message.channel + " of " + message.guild + " said: " + message.content);
//all of my other code
});
client.login(token);
I was able to figure out how to convert the user ID into a username, but I couldn’t do the same for channel IDs and Server IDs. I tried a similar approach with the channel ID by using the same code for the username for the channel, but it still gives me the numbers. In the console, this is what appears.
Kingamezz#0218 in 763786268181397527 of 763786268181397524 said: message text
My goal is to try and convert the IDs to the correct names, so I get a result that looks like
Kingamezz#0218 in #general of Testing Server said: message text
modafinil interactions – modafinil alternatives provigil cost
order accutane canada – accutane 20 mg price 50mg accutane
buy amoxicillin noscript canada – order Amoxil amoxicilina 500 mg
buy vardenafil 20 mg online – vardenafil pills buy cheap vardenafil no prescription
ivermectin 9 mg – price of stromectol ivermectin side effects
cialis cheapest price uk – cheap cialis cost of cialis per pill
ivermectin lotion – ivermectin medicine stromectol australia
accutane prescription online – order accutane no prescription buy accutane in canada
where to buy lyrica cheap – canadian pharmacy 24 canadian pharmacy online cialis
buy amoxicilin – buy amoxicillina 500 mg from mexico amoxil 250
viagra europe online – viagra 5 mg otc viagra australia
cialis prescription cost – generic tadalafil 20 mg canada cialis pills online india
ivermectin lice – ivermectin cream cost ivermectin usa
where can i get prednisone – prednisone for tinnitus how much is prednisone 10 mg
modafinil addiction – provigil vs nuvigil modafinil reddit
generic zithromax 500mg – zithromax z-pak buy zithromax 100mg online
lasix tablet price – furosemide online uk furosemide cost us
buy clomiphene online – where can i buy clomid buy clomid 25mg
ventolin 90 mcg – albuterol nebulizer ventolin price canada
where to get misoprostol – cytotec medication price buy cytotec no prescription
can i buy doxycycline in india – doxycycline 100g doxycycline hyclate 100 mg capsules
buying neurontin online – levothyroxine 100 mg price generic levothyroxine canada
buy viagra free shipping – buy sildenafil 20 mg without prescription
cialis cream – generic cialis online fast shipping cost cialis 20 mg
buy vardenafil 20mg online – levitra 10mg cheap vardenafil
prednisone 5 mg pill – purchase prednisone can you buy prednisone without a prescription
roaccutane 20mg – order accutane from india accutane 30mg
amoxicilin without prescription – amoxicillin for sale amoxil generic name
medrol 48 mg – generic methylprednisolone cost lyrica online canada
cheap custom essay – critical essay help essay for you
sildenafil drug coupon – Pfizer viagra how can you get viagra over the counter
ivermectin price uk – stromectol stromectol tablets how much is ivermectin
buy prednisone 5mg – medicine prednisone 5mg order prednisone 10mg
ventolin purchase – buy Albuterol ventolin price usa
buy doxycycline without prescription uk – where can you buy doxycycline online where can i buy prednisolone tablets
cost of ivermectin lotion – cost of ivermectin ivermectin 12 mg
stromectol prices – ivermectin 6 mg buy ivermectin nz
buy cheap sildenafil – sildenafil sample order sildenafil online
tadalafil online – tadalafil buy tadalafil 10 mg
accutane price south africa – cost of accutane accutane 40 mg capsule
stromectol pills – purchase stromectol ivermectin tablets for humans
sildenafil tablets 100mg online – Cialis usa real cialis
order vardenafil 30 pills – online pharmacy cheap erectile dysfunction pills online
plaquenil visual field – steroids prednisone for sale 15 mg prednisone daily
orlistat medication effectiveness – xenical 120 mg capsule orlistat dosis diaria
cheap viagra pills for sale – sildenafil online generic sildenafil in us
cialis online uk – cialis pharmacies medicine cialis tablets
prednisone 10 mg tablet price – prednisone brand name canada prednisone online purchase
canadian neighbor pharmacy – canadian cialis cheap cialis from india
can i buy tadalafil in canada – Cialis overnight no script pharmacy
ivermectin 6 mg tablets for humans – stromectol cost uk ivermectin 6 mg
cheap essay help – custom written papers practice essay writing online
generic female viagra – Fda approved viagra viagra tablet 100mg price
ivermectin cream cost – ivermectin buy australia ivermectin 6 mg for humans
prednisone 10 mg brand name – 5 mg prednisone prednisone medication
canadian viagra online pharmacy – cialis 20 mg cialis 10mg
acheter 25mg sildenafil – acheter 10mg du cialis tadalafil 20mg gГ©nГ©rique
stromectol 3 mg dosage – generic provigil 100mg ivermectin 6 mg for people
buy tadalafil tadalafil generic where to buy
tadalafil cost in canada buy generic cialis online with mastercard
buy prednisone generic – buy prednisone 5mg buy prednisone 40mg generic
order lyrica – brand lasix azithromycin sale
tadalafil order online no prescription tadalafil dosage
cenforce online – cost zyloprim 100mg zovirax 800mg canada
buy hydroxyzine generic – buy motilium 10mg generic crestor 20mg us
buy tetracycline generic – oral celexa 20mg buy citalopram generic
generic cialis tadalafil tadalafil order online no prescription
generic cialis tadalafil cialis tadalafil
tadalafil online tadalafil drug
https://cialisicp.com/ tadalafil generic where to buy
generic cialis tadalafil generic cialis tadalafil
what is tadalafil tadalafil generic
buy generic cialis online with mastercard https://cialisedot.com/
tadalafil liquid where to buy tadalafil on line
buy generic stromectol online online pharmacy stromectol
buy 6 mg ivermectin ivermectin pills stromectol