Closed ririko5834 closed 3 years ago
Also i would like to have that old giveaways will be removed from database.
client.giveawaysManager.giveaways.filter(g => g.ended).forEach(g => client.giveawaysManager.deleteGiveaway(g.messageID))
Approximately like that you can also check for the g.endAt
time to only delete giveaways after a specific time has passed since they ended
Check on startup or on an interval
If you don't have a question left then please close this issue.
Ok
Can someone send me example code how to get list of all active giveaways for message guild.
There should be returned giveaway channel and giveaway message link