ts-discord
v1.1.5
Published
A wrapper for the Discord API written in TypeScript
Downloads
1
Readme
ts-discord
A wrapper for the Discord API written in TypeScript
Installation
npm i --save ts-discord
# or
yarn add ts-discord
Example usage
const Discord = require('ts-discord');
dateconst client = new Discord.Client('OAuth2 bearer token provided by the OAuth2 API');
client.fetchUser()
.then(user => console.log(user.username + '#' + user.discriminator))
.catch(err => console.error(err));