import { SapphireClient } from "@sapphire/framework";
import { GatewayIntentBits } from "discord.js";
const client = new SapphireClient({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMembers,
],
});
(async () => {
try {
await client.login(process.env.BOT_TOKEN);
} catch (error) {
console.error(error);
client.destroy();
process.exit(1);
}
})();
import { SapphireClient } from "@sapphire/framework";
import { GatewayIntentBits } from "discord.js";
const client = new SapphireClient({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMembers,
],
});
(async () => {
try {
await client.login(process.env.BOT_TOKEN);
} catch (error) {
console.error(error);
client.destroy();
process.exit(1);
}
})();