Skip to content

Commit

Permalink
fix: remove privileged intents
Browse files Browse the repository at this point in the history
* Intents were wholly unnecessary
  • Loading branch information
totallytavi authored Dec 1, 2024
1 parent 5121583 commit c5783ae
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,7 @@ if (process.env.environment === 'development') console.debug('Starting in develo
//#endregion

//#region Discord init
const client: CustomClient<false> = new Client({
intents: [
IntentsBitField.Flags.Guilds,
IntentsBitField.Flags.GuildMembers,
IntentsBitField.Flags.GuildModeration,
IntentsBitField.Flags.GuildEmojisAndStickers,
IntentsBitField.Flags.GuildMessages,
IntentsBitField.Flags.DirectMessages
]
});
const client: CustomClient<false> = new Client();
client.logs = console;
// Load all functions
const funcs = await import('./functions/load.js').then((f) => f.execute(client)).catch((e) => client.logs.error(e));
Expand Down Expand Up @@ -47,4 +38,4 @@ client.on('interactionCreate', async (interaction) => {
});

client.login(config.bot.token);
//#endregion
//#endregion

0 comments on commit c5783ae

Please sign in to comment.