1.0.3 • Published 11 months ago

discord-8ball v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Getting Started:

npm i discord-8ball const ball = require('discord-8ball');

Needed options: question, interaction, hidden.

question: question is a STRING and should be what you want to ask the 8ball

interaction: this is the interaction you want the bot to use to reply.

hidden: use either TRUE or FALSE; this hides the message from everyone else.

Code Example:

const { SlashCommandBuilder } = require('discord.js'); const ball = require('discord-8ball')

module.exports = { data: new SlashCommandBuilder() .setName('package8ball') .setDescription('Roll the 8ball!') .addStringOption(option => option.setName('question').setDescription('Your question for the 8ball').setRequired(true)), async execute (interaction) {

    const { options } = interaction;
    const question = options.getString('question');

    ball({ question: question, interaction: interaction, hidden: false });
}

}

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago