0.0.7 • Published 2 years ago

ds-timeout.js v0.0.7

Weekly downloads
-
License
ISС
Repository
-
Last release
2 years ago

ds-timeout.js

discord-timeout.js is a Node.js library for working with discord.js

Installation

Use the package manager npm to install ds-timeout.js.

npm i ds-timeout.js

Usage

const Discord = require('discord.js')
const client = new Discord.Client();
const timeout = require('ds-timeout.js')
timeout(client)
client.on('ready', () => {
  console.log('redy')
})
client.on("message",async(message)=>{
        if(message.content == "test"){
                new timeout.Timeout(message.guild ,message.author, "30sec")
        }
})
client.login(process.env.TOKEN)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.