Spaces:
Runtime error
Runtime error
Update storage.js
Browse files- storage.js +5 -2
storage.js
CHANGED
|
@@ -55,7 +55,8 @@ class StorageManager {
|
|
| 55 |
broadcasts: [], // Broadcast history
|
| 56 |
scheduled_matches: [], // Scheduled league matches
|
| 57 |
cleanup_queue: [], // Messages to be deleted
|
| 58 |
-
onboarded: {} // GuildId -> Set of UserIds who got the welcome DM
|
|
|
|
| 59 |
};
|
| 60 |
this.loadAll();
|
| 61 |
}
|
|
@@ -94,6 +95,7 @@ class StorageManager {
|
|
| 94 |
this.data.scheduled_matches = state.scheduled_matches || [];
|
| 95 |
this.data.cleanup_queue = state.cleanup_queue || [];
|
| 96 |
this.data.onboarded = state.onboarded || {};
|
|
|
|
| 97 |
|
| 98 |
console.log('[STORAGE] Data loaded successfully');
|
| 99 |
}
|
|
@@ -132,7 +134,8 @@ class StorageManager {
|
|
| 132 |
settings: this.data.settings,
|
| 133 |
scheduled_matches: this.data.scheduled_matches,
|
| 134 |
cleanup_queue: this.data.cleanup_queue,
|
| 135 |
-
onboarded: this.data.onboarded
|
|
|
|
| 136 |
});
|
| 137 |
}
|
| 138 |
|
|
|
|
| 55 |
broadcasts: [], // Broadcast history
|
| 56 |
scheduled_matches: [], // Scheduled league matches
|
| 57 |
cleanup_queue: [], // Messages to be deleted
|
| 58 |
+
onboarded: {}, // GuildId -> Set of UserIds who got the welcome DM
|
| 59 |
+
dmall_sessions: {} // SessionId -> Session Data
|
| 60 |
};
|
| 61 |
this.loadAll();
|
| 62 |
}
|
|
|
|
| 95 |
this.data.scheduled_matches = state.scheduled_matches || [];
|
| 96 |
this.data.cleanup_queue = state.cleanup_queue || [];
|
| 97 |
this.data.onboarded = state.onboarded || {};
|
| 98 |
+
this.data.dmall_sessions = state.dmall_sessions || {};
|
| 99 |
|
| 100 |
console.log('[STORAGE] Data loaded successfully');
|
| 101 |
}
|
|
|
|
| 134 |
settings: this.data.settings,
|
| 135 |
scheduled_matches: this.data.scheduled_matches,
|
| 136 |
cleanup_queue: this.data.cleanup_queue,
|
| 137 |
+
onboarded: this.data.onboarded,
|
| 138 |
+
dmall_sessions: this.data.dmall_sessions
|
| 139 |
});
|
| 140 |
}
|
| 141 |
|