My question is as follows:
I’m building a Discord bot using the Discord.JS module, and using NodeJS I’m trying to add a simple crypto-price feature to my bot.
For now, I’m using the following code:
So basically, you have to provide the UUID of the desired crypto coin to request information, but I want my users to be able to do (for example) !price bitcoin or !price btc, but this requires the command to be like !price Qwsogvtv82FCd.
How do I resolve this issue?
Thanks in advance.