Commit 9989f08
Sorra
SB-0MNV1PCOQ000KUY0: Replace deprecated 'ready' event with 'clientReady' for discord.js v15
- Replaced this.client.once('ready', ...) with this.client.once('clientReady', ...)
- Added startupDone flag to ensure idempotent startup (handler runs only once)
- Updated handleReady() method to contain startup logic
- Tests pass (177 tests across 33 test files)1 parent 6366a29 commit 9989f08
1 file changed
Lines changed: 16 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
48 | 55 | | |
49 | | - | |
50 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
0 commit comments