Androz2091 / Androz2091/discord-giveaways

Check if the Client is still online before ending / drawing giveaways based on timestamps

Aperta
#407 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
JavaScript
Stelle
333
Fork
125
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I think my problem is that the CLIENT is not READY yet / a Shard disconnected (internal Shard)

an easy fix, should in theory be adding a `if(client.isReady())` function to ensure that the client actually works

or

use the shardReady shardDisconnect etc. and ready event

Because as you can see the shard got disconnected
![image](https://user-images.githubusercontent.com/68145571/146670306-1e23c33e-50fb-4e58-a9b3-1bebdac75f22.png)

another reason could be unavailable guilds, check if the guild.available === false (attention it's nullable)
THANKS!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.