Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
use IntentsBitField instead
Browse files Browse the repository at this point in the history
  • Loading branch information
RealEthanPlayzDev committed Oct 15, 2023
1 parent a055535 commit b59bf52
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import { MeteoriumClient } from "./util/MeteoriumClient";
import { GatewayIntentBits } from "discord.js";
import { IntentsBitField } from "discord.js";

const Intents = new IntentsBitField()
Intents.add(
IntentsBitField.Flags.Guilds,
IntentsBitField.Flags.GuildMembers,
IntentsBitField.Flags.GuildVoiceStates,
IntentsBitField.Flags.GuildInvites,
IntentsBitField.Flags.GuildEmojisAndStickers,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.GuildMessageReactions,
IntentsBitField.Flags.GuildPresences,
IntentsBitField.Flags.GuildModeration
)

const Client = new MeteoriumClient({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.GuildInvites,
GatewayIntentBits.GuildEmojisAndStickers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildModeration
],
intents: Intents
});

Client.login();

0 comments on commit b59bf52

Please sign in to comment.