Discord Command Permissions

Hey, sorry for creating so many new topics today, last one.

How could I make it so that the users that I allow can use this command?

I’m using if (message.author.id = 573208975143862283) return message.channel.send('This command is reserved only for my ``owner!’)` but I don’t know how to make it for multiple users.

Easy as a cake

var devs = ["ID1", "ID2"]; // can add as many as you want
if(devs.includes(message.author.id)) { // check all ids to know if they are the devs
// code here
} else { // else can be added or no
return; // will do nothing

And that is pretty much it :slight_smile:

1 Like

thank you :slight_smile:


No Problem, enjoy using it!

1 Like