start up message
any way of removing these logs on start up:
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] ApplicationCommandRegistries: Took 1ms to initialize.
6 Replies
In the client options, add
{ instance: new Logger(LogLevel.Warn) }
. This will only show logs that are a higher level from "info"
That is, anything from logger.trace()
, logger.debug()
, and logger.info()
will not show upby client options do you mean inside the
const client = new SapphireClient({})
yes
sorry, I wasn't specific. It's the
logger
field in the client options
new SapphireClient({ logger: { instance: ... }, ... })
oh alright
looks like it works ty
Actual solution is incorrect. I still think it's extremely silly to be anal about 2 log lines but you're not the first to ask so we added https://www.sapphirejs.dev/docs/Documentation/api-framework/interfaces/SapphireClientOptions#loadapplicationcommandregistriesstatuslisteners to client options that you can set to false.
CC @lioness100
Oh whoops