accept user discord implementation

This commit is contained in:
mo
2026-03-01 16:50:43 +01:00
parent 331fea2c10
commit 0e014dd08d
8 changed files with 93 additions and 22 deletions

View File

@@ -5,7 +5,10 @@ import client from "lib/client";
export class LogChannelService {
private logger = createLogger("LogChannelService");
private logChannelId = config.channelMapping.text.log;
private logChannelId =
process.env.NODE_ENV === "production"
? config.channelMapping.text.log
: config.channelMapping.text.testing;
async getLogChannel() {
this.logger.debug(`fetching log channel with ID: ${this.logChannelId}`);