mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
rollback
This commit is contained in:
1 parent
2f51b7e1d7
commit
97fe282bb3
29 files changed
+101
-431
No files matched your search
@@ -220,10 +220,7 @@ export class PlayerManager {
|
||||
try {
|
||||
const textChannelId = message?.channel?.id ?? message?.channel?.channel?.id ?? null;
|
||||
if (guildId && textChannelId) {
|
||||
const announceSrv = this.settings.getServer(guildId);
|
||||
if (announceSrv && announceSrv.get("announcementChannelId") !== textChannelId) {
|
||||
announceSrv.set("announcementChannelId", textChannelId);
|
||||
}
|
||||
this.settings.getServer(guildId)?.set("announcementChannelId", textChannelId);
|
||||
}
|
||||
} catch(e) {
|
||||
logger.warn("[PlayerManager] Failed to save announcement channel ID:", e?.message);
|
||||
@@ -259,10 +256,7 @@ export class PlayerManager {
|
||||
try {
|
||||
const textChannelId = message?.channel?.id ?? message?.channel?.channel?.id ?? null;
|
||||
if (cleanGuildId && textChannelId) {
|
||||
const announceSrv = this.settings.getServer(cleanGuildId);
|
||||
if (announceSrv && announceSrv.get("announcementChannelId") !== textChannelId) {
|
||||
announceSrv.set("announcementChannelId", textChannelId);
|
||||
}
|
||||
this.settings.getServer(cleanGuildId)?.set("announcementChannelId", textChannelId);
|
||||
}
|
||||
} catch(e) {
|
||||
logger.warn("[PlayerManager] Failed to save announcement channel ID:", e?.message);
|
||||
|
||||
Reference in new issue
Block a user