I was setting the giveawaysManager in the client and the following error appeared: Client is require option, it's probably my mistake and I don't think it's a bug, anyone who can help me will be grateful... I was setting it like this:
const { GiveawaysManager } = require("discord-giveaways");
class Main extends Client {
constructor(options) {
super(options);
this.commands = new Collection();
this.aliases = new Collection();
this.database = new Collection();
this.subcommands = new Collection();
this.cooldowns = new Collection();
this.giveawayManager = new GiveawaysManager(this.client, {
storage: "./src/database/extensions/giveaway.json",
updateCountdownEvery: 3000,
default: {
botsCanWin: false,
embedColor: "#ff58c3",
reaction: "🌸"
}
})
}// the rest is not necessary to show
I was setting the giveawaysManager in the client and the following error appeared: Client is require option, it's probably my mistake and I don't think it's a bug, anyone who can help me will be grateful... I was setting it like this: