mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
testing this for a day if its bad i just wast my time
This commit is contained in:
1 parent
fd58343ce9
commit
656cbfe149
33 files changed
+726
-102
No files matched your search
@@ -220,7 +220,10 @@ export class PlayerManager {
|
||||
try {
|
||||
const textChannelId = message?.channel?.id ?? message?.channel?.channel?.id ?? null;
|
||||
if (guildId && textChannelId) {
|
||||
this.settings.getServer(guildId)?.set("announcementChannelId", textChannelId);
|
||||
const announceSrv = this.settings.getServer(guildId);
|
||||
if (announceSrv && announceSrv.get("announcementChannelId") !== textChannelId) {
|
||||
announceSrv.set("announcementChannelId", textChannelId);
|
||||
}
|
||||
}
|
||||
} catch(e) {
|
||||
logger.warn("[PlayerManager] Failed to save announcement channel ID:", e?.message);
|
||||
@@ -256,7 +259,10 @@ export class PlayerManager {
|
||||
try {
|
||||
const textChannelId = message?.channel?.id ?? message?.channel?.channel?.id ?? null;
|
||||
if (cleanGuildId && textChannelId) {
|
||||
this.settings.getServer(cleanGuildId)?.set("announcementChannelId", textChannelId);
|
||||
const announceSrv = this.settings.getServer(cleanGuildId);
|
||||
if (announceSrv && announceSrv.get("announcementChannelId") !== textChannelId) {
|
||||
announceSrv.set("announcementChannelId", textChannelId);
|
||||
}
|
||||
}
|
||||
} catch(e) {
|
||||
logger.warn("[PlayerManager] Failed to save announcement channel ID:", e?.message);
|
||||
|
||||
Reference in new issue
Block a user