look here for good docs
simple setup, types.d.ts
included
to get your discord token, just simply open discord and press ctrl+shift+i. Then go to the network tab and search for your token in the requests
import DiscordUserApi from 'discorduserapi'
const api = new DiscordUserApi({ guild: <guildId>, token: <your discord token> })
const DiscordUserApi = require('discorduserapi')
const api = new DiscordUserApi({ guild: <guildId>, token: <your discord token> })