UNPKG

discord.js-selfbot-v13-proxy

Version:

A unofficial discord.js-selfbot-v13 fork for creating selfbots with proxy [Based on discord.js v13]

22 lines (16 loc) 507 B
'use strict'; const Action = require('./Action'); class GuildChannelsPositionUpdate extends Action { handle(data) { const client = this.client; const guild = client.guilds.cache.get(data.guild_id); if (guild) { for (const partialChannel of data.channels) { const channel = guild.channels.cache.get(partialChannel.id); if (channel) channel.rawPosition = partialChannel.position; } } return { guild }; } } module.exports = GuildChannelsPositionUpdate;