Discord.js reminder command TypeError: Expected a number

Hello I have a reminder command that isnt working i keep getting TypeError: Expected a number

if(command === "remind"){
  let timeuser = args[0]
let reason = args.slice(1).join(" ")
// !remind 10m Dream Code Uploaded video

if(!timeuser) return message.reply(":x: You should enter time 10m 10s 10d")
if(!reason) return message.reply(":x: You should enter reason")

db.set(`remind.${message.author.id}`,Date.now() + ms(timeuser))
message.channel.send("ok")
const interval = setInterval(function() {


    if(Date.now() > db.fetch(`remind.${message.author.id}`)){
        db.delete(`remind.${message.author.id}`)
        message.author.send(`**Remind:**${reason}`)
        .catch(e => console.log(e))
        clearInterval(interval)
    }

},1000)
}

Error:

(node:2928) UnhandledPromiseRejectionWarning: TypeError: Expected a number
    at module.exports (C:\Users\Max\Desktop\new bot 3\node_modules\parse-ms\index.js:4:9)
    at Client.<anonymous> (C:\Users\Max\Desktop\new bot 3\index.js:1699:51)
    at Client.emit (events.js:315:20)
    at MessageCreateAction.handle (C:\Users\Max\Desktop\new bot 3\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (C:\Users\Max\Desktop\new bot 3\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (C:\Users\Max\Desktop\new bot 3\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
    at WebSocketShard.onPacket (C:\Users\Max\Desktop\new bot 3\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
    at WebSocketShard.onMessage (C:\Users\Max\Desktop\new bot 3\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
    at WebSocket.onMessage (C:\Users\Max\Desktop\new bot 3\node_modules\ws\lib\event-target.js:132:16)
    at WebSocket.emit (events.js:315:20)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2928) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:2928) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

89 thoughts on “Discord.js reminder command TypeError: Expected a number”

  1. 816885 145643Having read this I thought it was extremely informative. I appreciate you taking the time and effort to put this post together. I once once again find myself spending strategy to considerably time both reading and commenting. But so what, it was still worth it! 694710

    Reply
  2. 447734 13813Youre so cool! I dont suppose Ive read anything like this before. So nice to find somebody with some original thoughts on this topic. realy thank you for starting this up. this internet site is something that is needed on the web, someone with a little originality. useful job for bringing something new towards the internet! 615890

    Reply