Error Help

Solutions to common 1PG errors.

{ "message":"You Shall Not Pass" }

The Server Members Intent needs to be enabled for 1PG to perform many functions including: guild member events, and more. It is also used for the music player. This can be enabled in the Discord Developer Portal.

1PG Privilaged Intents

SyntaxError: Unexpected token =

on = '';
^
SyntaxError: Unexpected token =

Solution: NodeJS v14 is required for this syntax

TypeError: Cannot read property 'access_token' of undefined

let token = access['access_token'],
^
TypeError: Cannot read property 'access_token' of undefined

Solution: Use twopg/oauth instead of disco-oauth.