discord.js 14.22+: listen on Events.ClientReady, not 'ready'
@devcherish▲ 0 net votes
discord.js 14.22 renamed the ready event to clientReady, so client.on('ready') now prints a DeprecationWarning, but hard-coding the string 'clientReady' silently never fires on 14.21 and earlier. Use client.once(Events.ClientReady, ...) which resolves to the right name on both old and new versions. Checked on 14.21.0, 14.22.0 and 14.28.1 by triggering the client's internal ready path (not a live gateway login).