Help with Discordia (Lua-based Discord API library)

So I got this script to make a command trough a discord bot giving a player the cooldown rank for the time given now I got two errors and I don’t know why it gives those errors I got ms installed inside package.json.

Maybe you know how to fix this?

script:

Check your quotes on line 116

30chars

Hey this section is used for roblox scripting questions. I’d suggest using stack overflow because you don’t need to spend hours to post

Its the same as Roblox scripting so I don’t see the problem posting it here.

And its being used for Roblox games anyways.

Before you post please read about the category
https://devforum.roblox.com/t/about-the-scripting-support-category/45863/2

Is ms a valid function? If you want to turn seconds into milliseconds you can just multiply by 1000.

This is a support category for help on everything related to scripting

Well it should be

This is a category for ‘Scripting on the Roblox platform’. Again, make sure to read about the category

I don’t know nothing about this but i can see that “ms” is marked with red, your “local” (How i call this like) doesn’t exists or you mispelled something?

Please stop saying that, there are people that want to help clearly you don’t so just leave it.

Is it defined or is it only installed as a dependancie?

Yeah thats why I posted it here it, I don’t know why it its marked red because I got “ms” installed into my package.json

scripting on the Roblox platform

I guess that this is also related with Roblox, since this is for a ROBLOX game. And the most relationed category for this issue is “Scripting Support”.

You need to do require at the top

e.g
const ms = require(‘ms’)

1 Like

A wrong value? for example:

I want to write “hElLo” in a NumberValue.

image

What errors does it give and try swapping it with a random thing like hi() to see if the same error occurs

If you would like us to help out, you need to attach any errors you find, as well as all relevant code. It is impossible to debug otherwise. Use the Logs button on glitch.me (bottom left of the page) to see the errors.