discord.js 15.0.0-dev.1762951248-e8217e335 → 15.0.0-dev.1762992116-837af56cf

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "discord.js",
4
- "version": "15.0.0-dev.1762951248-e8217e335",
4
+ "version": "15.0.0-dev.1762992116-837af56cf",
5
5
  "description": "A powerful library for interacting with the Discord API",
6
6
  "main": "./src/index.js",
7
7
  "types": "./typings/index.d.ts",
@@ -61,12 +61,12 @@
61
61
  "magic-bytes.js": "^1.12.1",
62
62
  "tslib": "^2.8.1",
63
63
  "undici": "7.16.0",
64
- "@discordjs/formatters": "1.0.0-dev.1762948910-e8217e335",
65
- "@discordjs/collection": "3.0.0-dev.1762948910-e8217e335",
66
- "@discordjs/rest": "3.0.0-dev.1762948910-e8217e335",
67
- "@discordjs/builders": "2.0.0-dev.1762948910-e8217e335",
68
- "@discordjs/util": "2.0.0-dev.1762948910-e8217e335",
69
- "@discordjs/ws": "3.0.0-dev.1762948910-e8217e335"
64
+ "@discordjs/builders": "2.0.0-dev.1762992116-837af56cf",
65
+ "@discordjs/formatters": "1.0.0-dev.1762992116-837af56cf",
66
+ "@discordjs/rest": "3.0.0-dev.1762992116-837af56cf",
67
+ "@discordjs/util": "2.0.0-dev.1762992116-837af56cf",
68
+ "@discordjs/ws": "3.0.0-dev.1762992116-837af56cf",
69
+ "@discordjs/collection": "3.0.0-dev.1762992116-837af56cf"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@favware/cliff-jumper": "^4.1.0",
@@ -82,9 +82,9 @@
82
82
  "tsd": "^0.33.0",
83
83
  "turbo": "^2.5.8",
84
84
  "typescript": "~5.9.3",
85
- "@discordjs/api-extractor": "7.52.7",
86
85
  "@discordjs/docgen": "0.12.1",
87
- "@discordjs/scripts": "0.1.0"
86
+ "@discordjs/scripts": "0.1.0",
87
+ "@discordjs/api-extractor": "7.52.7"
88
88
  },
89
89
  "engines": {
90
90
  "node": ">=22.12.0"
@@ -61,7 +61,7 @@ class GuildMember extends Base {
61
61
  */
62
62
  Object.defineProperty(this, '_roles', { value: [], writable: true });
63
63
 
64
- if (data) this._patch(data);
64
+ this._patch(data);
65
65
  }
66
66
 
67
67
  _patch(data) {
@@ -24,7 +24,7 @@ class PermissionOverwrites extends Base {
24
24
  */
25
25
  Object.defineProperty(this, 'channel', { value: channel });
26
26
 
27
- if (data) this._patch(data);
27
+ this._patch(data);
28
28
  }
29
29
 
30
30
  _patch(data) {
@@ -38,7 +38,7 @@ class Role extends Base {
38
38
  */
39
39
  this.unicodeEmoji = null;
40
40
 
41
- if (data) this._patch(data);
41
+ this._patch(data);
42
42
  }
43
43
 
44
44
  _patch(data) {
@@ -55,7 +55,7 @@ class ThreadChannel extends BaseChannel {
55
55
  * @type {ThreadMemberManager}
56
56
  */
57
57
  this.members = new ThreadMemberManager(this);
58
- if (data) this._patch(data);
58
+ this._patch(data);
59
59
  }
60
60
 
61
61
  _patch(data) {
@@ -23,7 +23,7 @@ class Webhook {
23
23
  * @readonly
24
24
  */
25
25
  Object.defineProperty(this, 'client', { value: client });
26
- if (data) this._patch(data);
26
+ this._patch(data);
27
27
  }
28
28
 
29
29
  _patch(data) {
@@ -3525,7 +3525,7 @@ export interface ThreadChannel<ThreadOnly extends boolean = boolean>
3525
3525
  MessageChannelFields,
3526
3526
  SendMethod<true> {}
3527
3527
  export class ThreadChannel<ThreadOnly extends boolean = boolean> extends BaseChannel {
3528
- private constructor(guild: Guild, data?: RawThreadChannelData, client?: Client<true>);
3528
+ private constructor(guild: Guild, data: RawThreadChannelData, client?: Client<true>);
3529
3529
  public archived: boolean | null;
3530
3530
  public get archivedAt(): Date | null;
3531
3531
  public archiveTimestamp: number | null;
@@ -3821,7 +3821,7 @@ export class VoiceState extends Base {
3821
3821
 
3822
3822
  export interface Webhook<Type extends WebhookType = WebhookType> extends WebhookFields {}
3823
3823
  export class Webhook<Type extends WebhookType = WebhookType> {
3824
- private constructor(client: Client<true>, data?: unknown);
3824
+ private constructor(client: Client<true>, data: unknown);
3825
3825
  public avatar: string | null;
3826
3826
  public avatarURL(options?: ImageURLOptions): string | null;
3827
3827
  public channelId: Snowflake;
@@ -3525,7 +3525,7 @@ export interface ThreadChannel<ThreadOnly extends boolean = boolean>
3525
3525
  MessageChannelFields,
3526
3526
  SendMethod<true> {}
3527
3527
  export class ThreadChannel<ThreadOnly extends boolean = boolean> extends BaseChannel {
3528
- private constructor(guild: Guild, data?: RawThreadChannelData, client?: Client<true>);
3528
+ private constructor(guild: Guild, data: RawThreadChannelData, client?: Client<true>);
3529
3529
  public archived: boolean | null;
3530
3530
  public get archivedAt(): Date | null;
3531
3531
  public archiveTimestamp: number | null;
@@ -3821,7 +3821,7 @@ export class VoiceState extends Base {
3821
3821
 
3822
3822
  export interface Webhook<Type extends WebhookType = WebhookType> extends WebhookFields {}
3823
3823
  export class Webhook<Type extends WebhookType = WebhookType> {
3824
- private constructor(client: Client<true>, data?: unknown);
3824
+ private constructor(client: Client<true>, data: unknown);
3825
3825
  public avatar: string | null;
3826
3826
  public avatarURL(options?: ImageURLOptions): string | null;
3827
3827
  public channelId: Snowflake;