discord-sb.js 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-sb.js",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "An unofficial discord.js fork for creating selfbots",
5
5
  "main": "./src/index.js",
6
6
  "types": "./typings/index.d.ts",
@@ -4,7 +4,6 @@ const { createSocket } = require('dgram');
4
4
  const { EventEmitter } = require('events');
5
5
  const { Buffer } = require('node:buffer');
6
6
  const { Writable } = require('stream');
7
- const Bun = require('bun');
8
7
  const { RtpPacket } = require('werift-rtp');
9
8
  const Util = require('../../../util/Util');
10
9
  const { randomPorts } = require('../util/Function');
@@ -4,7 +4,6 @@ const { Buffer } = require('node:buffer');
4
4
  const fs = require('node:fs');
5
5
  const path = require('node:path');
6
6
  const stream = require('node:stream');
7
- const Bun = require('bun');
8
7
  const { getNativeFetch } = require('./FetchUtil');
9
8
  const { Error: DiscordError, TypeError } = require('../errors');
10
9
  const Invite = require('../structures/Invite');
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  const isBun = typeof Bun !== 'undefined';
4
- const Bun = require('bun');
5
4
 
6
5
  if (!isBun) {
7
6
  throw new Error('discord-sb.js Bun-only build requires Bun runtime.');