UNPKG

discord.js

Version:

A powerful library for interacting with the Discord API

24 lines (17 loc) 563 B
'use strict'; const Action = require('./Action'); const Events = require('../../util/Events'); class EntitlementCreateAction extends Action { handle(data) { const client = this.client; const entitlement = client.application.entitlements._add(data); /** * Emitted whenever an entitlement is created. * @event Client#entitlementCreate * @param {Entitlement} entitlement The entitlement that was created */ client.emit(Events.EntitlementCreate, entitlement); return {}; } } module.exports = EntitlementCreateAction;