Home > Blockchain >  Use variable value as name for another variable node js
Use variable value as name for another variable node js

Time:09-27

Using Discord.JS, I am trying to use the command's first argument (args[0]) to call another variable (summer). args[0] will be 'summer'. Let me put it this way, the command is for decorating channels, so when someone says *decor summer it calls the array with all the summer emojis.

Current code:

let summer      = ['☀️', '           
  • Related