We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c005aad commit ba3e0e4Copy full SHA for ba3e0e4
src/bot/structures/GiveawayHandler.ts
@@ -63,7 +63,7 @@ export default class GiveawayHandler {
63
const users = await this.fetchUsers(reaction);
64
const list = users.filter((u) => u.id !== message.author.id);
65
66
- if (g.boosted?.length) {
+ if (g.boosted.length) {
67
const used: string[] = [];
68
const members = await message.guild!.members.fetch();
69
const boosts = g.boosted.sort((a, b) => b.entries - a.entries);
@@ -156,6 +156,8 @@ export default class GiveawayHandler {
156
guildId,
157
});
158
159
+ this.client.logger.info(`[GIVEAWAY HANDLER]: Checking ${giveaways.length} if they're ready for draw`);
160
+
161
const now = Date.now();
162
if (!giveaways.length) return;
163
for (const giveaway of giveaways.values()) {
0 commit comments