if(msg.content.startsWith(prefix "addbalance") && msg.member.permissions.has("ADMINISTRATOR"))
I need help changing command access from ADMINISTRATOR permission to only my discord id. I want to limitate the command only if I use it because I have many ADMINISTRATORS in my server.
CodePudding user response:
You can change the second parameter in the if statement to check if the user ID of the sender is yours.
if (msg.content.startsWith(prefix "addbalance") && msg.member.user.id == YOUR_ID))
