1.0.7 • Published 3 years ago

discord-confirm v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Installation

$ npm install discord-confirm

Example

Confirm

//INITIALIZATION
const { confirm } = require("discord-confirmation")
//EXAMPLE OF SENDING MESSAGE
message.channel.send("Do you want to send the message?").then(async (message) => {
    const reactions = await confirm(message, message.author, ["✅", "❌"], 10000); //TIME IS IN MILLISECONDS
    if(reactions === "✅") {
        message.channel.send("Hello, my friend")
    }
    if(reactions === "❌") {
        return;
    }
    else {
        console.log("Timed Out")
    }
})
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago