import * as log from '../utils/output/log' ; import { gqlURL } from '../lib/constants' ; import { gql , GraphQLClient } from 'graphql-request' ; export const handler = async ( yargs ) => { const useJSON = yargs . json ; const client = new GraphQLClient ( gqlURL , { headers : { authorization : 'Bearer INSERT TOKEN HERE' , } , } ) ; const query = gql `
    query {
      currentUser {
        id
        banner
        avatar
        createdAt
        github
        twitter
        discord
        google
        bio
        username
        name
        verified
        roles
      }
    }
  ` ; client . request ( query ) . then ( ( res ) => { if ( useJSON ) return console . log ( JSON . stringify ( res ) ) ; log . info ( res ) ; } ) ; } ;