mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
feat(music): persist music analytics to MySQL with 24h/year timeframes and personal recap
This commit is contained in:
1 parent
da477ebf03
commit
c9332a15af
15 files changed
+274
-166
No files matched your search
@@ -266,7 +266,7 @@ class Player extends EventEmitter {
|
||||
const channelId = this._channelId ?? this._home247Channel;
|
||||
if (channelId) {
|
||||
const ch = this.client?.channels?.get?.(channelId);
|
||||
const fromChannel = ch?.guildId ?? ch?.guild?.id ?? null;
|
||||
const fromChannel = ch?.guildId ?? ch?.guild?.id ?? ch?.serverId ?? ch?.server_id ?? null;
|
||||
if (fromChannel) return cleanId(fromChannel);
|
||||
}
|
||||
} catch(e) { logger.warn("[Player] Guild resolution failed:", e?.message); }
|
||||
@@ -525,7 +525,7 @@ class Player extends EventEmitter {
|
||||
}
|
||||
|
||||
this._channelId = channelId;
|
||||
this._guildId = cleanId(channel.guildId);
|
||||
this._guildId = cleanId(channel.guildId ?? channel.guild?.id ?? channel.serverId ?? channel.server_id ?? "");
|
||||
this._lastConnectedAt = Date.now();
|
||||
this.leaving = false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user