seyfert
Version:
The most advanced framework for discord bots
17 lines (16 loc) • 559 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Entitlement = void 0;
const DiscordBase_1 = require("./extra/DiscordBase");
class Entitlement extends DiscordBase_1.DiscordBase {
get startsAtTimestamp() {
return this.startsAt ? Date.parse(this.startsAt) : null;
}
get endsAtTimestamp() {
return this.endsAt ? Date.parse(this.endsAt) : null;
}
consume() {
return this.client.applications.consumeEntitlement(this.applicationId, this.id);
}
}
exports.Entitlement = Entitlement;