UNPKG

katsu-sb

Version:

Using Discord.js for a selfbot

13 lines (10 loc) 315 B
'use strict'; const { Events } = require('../../../util/Constants'); module.exports = (client, { d: data }) => { const channel = client.channels.cache.get(data.id); if (channel) { const old = channel._clone(); channel.status = data.status; client.emit(Events.CHANNEL_UPDATE, old, channel); } };