const Action = require('./Action');

class GuildRolesPositionUpdate extends Action {
  handle(data) {
    const client = this.client;

    const guild = client.guilds.get(data.guild_id);
    if (guild) {
      for (const partialRole of data.roles) {
        const role = guild.roles.get(partialRole.id);
        if (role) {
          role.position = partialRole.position;
        }
      }
    }

    return {
      guild,
    };
  }
}

/**
 * Emitted whenever a guild role is created.
 * @event Client#guildRoleCreate
 * @param {Guild} guild The guild that the role was created in.
 * @param {Role} role The role that was created.
 */

module.exports = GuildRolesPositionUpdate;

@@ -456,215 +456,8 @@
 %0D%0A%0D%0A
-/**%0D%0A * Emitted whenever a guild role is created.%0D%0A * @event Client#guildRoleCreate%0D%0A * @param %7BGuild%7D guild The guild that the role was created in.%0D%0A * @param %7BRole%7D role The role that was created.%0D%0A */%0D%0A%0D%0A
 modu

Fix docs