Skip to content

Commit

Permalink
fix: add 'GUILD_MESSAGES' back into intent flags
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkdean committed Jan 5, 2022
1 parent 6e64027 commit 41e1925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/network-bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class NetworkBot {
constructor() {
this.log = new Log([new StdioAdaptor()], 'network-bot', LogLevelFromString(GlobalConfig.logLevel))

this.client = new Discord.Client({ intents: ['GUILDS'] })
this.client = new Discord.Client({ intents: ['GUILDS', 'GUILD_MESSAGES'] })
this.client.on('error', this.onError.bind(this))
this.client.on('warn', this.onWarn.bind(this))
this.client.on('invalidated', this.onInvalidated.bind(this))
Expand Down
2 changes: 1 addition & 1 deletion src/price-bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class PriceBot {
constructor() {
this.log = new Log([new StdioAdaptor()], 'price-bot', LogLevelFromString(GlobalConfig.logLevel))

this.client = new Discord.Client({ intents: ['GUILDS'] })
this.client = new Discord.Client({ intents: ['GUILDS', 'GUILD_MESSAGES'] })
this.client.on('error', this.onError.bind(this))
this.client.on('warn', this.onWarn.bind(this))
this.client.on('invalidated', this.onInvalidated.bind(this))
Expand Down

0 comments on commit 41e1925

Please sign in to comment.