all repos — discord-utils @ 0e6a30bf60e45be30d6b53457a228bfaca0c9975

src/discord/client.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
import { LogLevel, SapphireClient } from "@sapphire/framework";

import { PinoSapphireLogger } from "@/logger";
import "@/commands";
import config from "@/config";

export const client = new SapphireClient({
	intents: [],
	baseUserDirectory: null,
	allowedMentions: {
		parse: [],
		repliedUser: true,
	},
	logger: {
		instance: new PinoSapphireLogger(
			{ level: "trace" },
			config.isProduction ? LogLevel.Info : LogLevel.Debug,
		),
	},
});