UNPKG

selfbot-discord

Version:
18 lines (14 loc) • 432 B
const AbstractHandler = require('./AbstractHandler'); class ChannelCreateHandler extends AbstractHandler { handle(packet) { const client = this.packetManager.client; const data = packet.d; client.actions.ChannelCreate.handle(data); } } /** * Emitted whenever a channel is created. * @event Client#channelCreate * @param {Channel} channel The channel that was created */ module.exports = ChannelCreateHandler;