@aero/drep

2.1.3 • Public • Published

@drep/api

Official wrapper of the DiscordRep API.

Install

$ npm i @drep/api

Usage

const { DRepClient } = require('@aero/drep');
const drep = new DRepClient('your-fancy-token');

Endpoints

class DRepClient {
	rep(userID: string): Reputation;
	infractions(userID: string): Ban | Warn | null;
}

Return Types

interface Reputation {
	upvotes: number;
	downvotes: number;
	reputation: number;
	rank: string;
	xp: number;
	staff: boolean;
}

interface Ban {
	moderator: string;
	reason: string;
	date: Date;
}

interface Warn {
	moderator: string;
	reason: string;
	date: Date;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @aero/drep

Weekly Downloads

1

Version

2.1.3

License

BSD-3-Clause

Unpacked Size

7.62 kB

Total Files

16

Last publish

Collaborators

  • nekiono
  • princessravy