UNPKG

shadowsb

Version:

A unofficial discord.js fork for creating selfbots [Based on discord.js v13] (discord.js-selfbot-v13) for true version

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;