2.1.3 • Published 2 years ago

@aero/drep v2.1.3

Weekly downloads
12
License
BSD-3-Clause
Repository
-
Last release
2 years ago

@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;
}
2.1.2

2 years ago

2.1.1

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.13

4 years ago

1.2.12

4 years ago

1.2.10

4 years ago

1.2.11

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago