Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

How to use two ifs?

Hello guys,

I'm working on a custom bot for Discord and I need some help.
I have the following code:

if(command === 'sino') {
if (msg.channel.id === '761500739842506774') {
msg.react(":thumbsup:")
msg.channel.send("", {
files: ["https://image.png"], });
}}
Code (markup):
I think I'm doing something wrong with the if.
What I want is to use the command !sino only on a specific channel.

I also have tried this but without success:

if(command === 'sino') {
msg.channel.id ===...
Code (markup):
How to use two ifs?

from JavaScript https://ift.tt/34meUYq
via IFTTT

Post a Comment

0 Comments