This plugin adds a customisable giveway feature in your discord klasa bot. It comes with the following commands:
NOTE:
Install the plugin
npm i klasa-giveaway
yarn add klasa-giveaway
Use the plugin in your code
const { Client } = require("klasa");
Client.use(require("klasa-giveaway"));
new Client().login("Your Beautiful Token");
or in typescript
import { Client } from 'klasa';
import { GiveawayClient } from 'klasa-giveaway';
Client.use(GiveawayClient);
new Client().login("Your Beautiful Token");
To your KlasaClientOptions you can optionally add giveaway options.
For example:
new Client({
giveaway: {
maxGiveaways: 5,
requiredPermission: 5,
provider: 'mongodb'
}
})
For a list of giveaway options see here
It also allows you to define your own locales. See built in en-US Locale
Generated using TypeDoc