📕
AFKHandler
  • Introduction
  • FAQ
  • Changelog
  • Classes
    • AFKHandler
    • Command
    • SlashCommand
    • Event
    • Feature
  • Methods
    • Commands
    • SlashCommands
    • deleteSlash
    • Events
    • Features
    • load
    • setCooldown
    • time
    • convert
    • convertLong
  • Types
  • AFKHandlerInteraface
  • AFKHandlerOptions
  • CommandInterface
  • SlashCommandInterface
  • EventInterface
  • FeatureInterface
  • CommandHelp
  • (Callbacks)
  • (Utils)
Powered by GitBook
On this page

Was this helpful?

  1. Methods

convert

Converts a ms time to a string with days, hours, minutes and seconds (calls convertLong)

public convert(number: number, decimals: number = 0): string

  • number: time in ms to convert

  • decimals: number of decimals the seconds will have

const time = client.convert(578474340, 2)
console.log(`Wait ${time} more!`)
PrevioustimeNextconvertLong

Last updated 3 years ago

Was this helpful?