oceanic.js
Version:
A NodeJS library for interfacing with Discord.
13 lines (12 loc) • 457 B
TypeScript
import BaseEntitlement from "./BaseEntitlement";
import type { RawEntitlement } from "../types/applications";
import type Client from "../Client";
import type { JSONEntitlement } from "../types";
/** Represents an entitlement. */
export default class Entitlement extends BaseEntitlement {
endsAt: Date | null;
startsAt: Date | null;
subscriptionID: string;
constructor(data: RawEntitlement, client: Client);
toJSON(): JSONEntitlement;
}