Ask coding questions

← Back to all posts
[NOBLOX.JS] Help with arguments (if im using the right term)
popQA17 (0)


Im tryna make a discord bot where when !role is used, the roblox bot will rank a user to the specified rolename of the command args. But, idk how to work with args so I just copied and pasted some code related to args on stack-overflow. But, it failed. Why? The console on (im hosting my discord bot on repl, and doing the roblox bot code also in repel, using discord.js + noblox.js) says that there is a bad request and the roleset is invalid or cannot be found. Can someone help..?


I did use the const arg in the code, i think thats wrong but i don't know what else to use to specify what the user wrote after the command was triggered (aka !role)