Skip to content

Commit

Permalink
Merge pull request #51 from quinnturner/master
Browse files Browse the repository at this point in the history
fix: Remove intent code
  • Loading branch information
quinnturner committed Nov 1, 2020
2 parents 427880e + d717f57 commit 6647f4a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/web-api/src/services/discord.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import btoa from 'btoa';
import Discord, { Intents, TextChannel } from 'discord.js';
import Discord, { TextChannel } from 'discord.js';
import FormData from 'form-data';
import fetch from 'node-fetch';

Expand Down Expand Up @@ -72,11 +72,7 @@ const ReadingDiscordBot = (() => {
let instance: Discord.Client;

function createInstance() {
const intents = new Intents(Intents.ALL);
intents.remove('GUILD_PRESENCES');
const discordClient: Discord.Client = new Discord.Client({
ws: { intents: intents },
});
const discordClient: Discord.Client = new Discord.Client();

discordClient.login(DiscordBotSecret);
discordClient.on('ready', () => {
Expand Down

0 comments on commit 6647f4a

Please sign in to comment.