discord.js 15.0.0-dev.1739232719-5c4897909 → 15.0.0-dev.1739361916-64494137d

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.1739232719-5c4897909",
4
+ "version": "15.0.0-dev.1739361916-64494137d",
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",
@@ -60,11 +60,11 @@
60
60
  "lodash.snakecase": "4.1.1",
61
61
  "tslib": "^2.8.1",
62
62
  "undici": "6.21.1",
63
- "@discordjs/collection": "^2.1.1",
63
+ "@discordjs/rest": "^2.4.0",
64
+ "@discordjs/ws": "^2.0.0",
64
65
  "@discordjs/formatters": "^0.5.0",
65
66
  "@discordjs/util": "^1.1.1",
66
- "@discordjs/ws": "^2.0.0",
67
- "@discordjs/rest": "^2.4.0"
67
+ "@discordjs/collection": "^2.1.1"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@favware/cliff-jumper": "^4.1.0",
@@ -81,8 +81,8 @@
81
81
  "tslint": "6.1.3",
82
82
  "turbo": "^2.3.3",
83
83
  "typescript": "~5.5.4",
84
- "@discordjs/api-extractor": "^7.38.1",
85
84
  "@discordjs/docgen": "^0.12.1",
85
+ "@discordjs/api-extractor": "^7.38.1",
86
86
  "@discordjs/scripts": "^0.1.0"
87
87
  },
88
88
  "engines": {
@@ -904,16 +904,13 @@ export interface MappedChannelCategoryTypes {
904
904
  [ChannelType.GuildMedia]: MediaChannel;
905
905
  }
906
906
 
907
- export type CategoryChannelType = Exclude<
908
- ChannelType,
909
- | ChannelType.DM
910
- | ChannelType.GroupDM
911
- | ChannelType.PublicThread
912
- | ChannelType.AnnouncementThread
913
- | ChannelType.PrivateThread
914
- | ChannelType.GuildCategory
915
- | ChannelType.GuildDirectory
916
- >;
907
+ export type CategoryChannelChildTypes =
908
+ | ChannelType.GuildAnnouncement
909
+ | ChannelType.GuildVoice
910
+ | ChannelType.GuildText
911
+ | ChannelType.GuildStageVoice
912
+ | ChannelType.GuildForum
913
+ | ChannelType.GuildMedia;
917
914
 
918
915
  export class CategoryChannel extends GuildChannel {
919
916
  public get children(): CategoryChannelChildManager;
@@ -4010,7 +4007,7 @@ export class CategoryChannelChildManager extends DataManager<Snowflake, Category
4010
4007
 
4011
4008
  public channel: CategoryChannel;
4012
4009
  public get guild(): Guild;
4013
- public create<Type extends CategoryChannelType>(
4010
+ public create<Type extends CategoryChannelChildTypes>(
4014
4011
  options: CategoryCreateChannelOptions & { type: Type },
4015
4012
  ): Promise<MappedChannelCategoryTypes[Type]>;
4016
4013
  public create(options: CategoryCreateChannelOptions): Promise<TextChannel>;
@@ -4108,7 +4105,7 @@ export type MappedGuildChannelTypes = {
4108
4105
  [ChannelType.GuildCategory]: CategoryChannel;
4109
4106
  } & MappedChannelCategoryTypes;
4110
4107
 
4111
- export type GuildChannelTypes = CategoryChannelType | ChannelType.GuildCategory;
4108
+ export type GuildChannelTypes = CategoryChannelChildTypes | ChannelType.GuildCategory;
4112
4109
 
4113
4110
  export class GuildChannelManager extends CachedManager<Snowflake, GuildBasedChannel, GuildChannelResolvable> {
4114
4111
  private constructor(guild: Guild, iterable?: Iterable<RawGuildChannelData>);
@@ -5028,7 +5025,7 @@ export interface CategoryCreateChannelOptions {
5028
5025
  name: string;
5029
5026
  permissionOverwrites?: readonly OverwriteResolvable[] | ReadonlyCollection<Snowflake, OverwriteResolvable>;
5030
5027
  topic?: string;
5031
- type?: CategoryChannelType;
5028
+ type?: CategoryChannelChildTypes;
5032
5029
  nsfw?: boolean;
5033
5030
  bitrate?: number;
5034
5031
  userLimit?: number;
@@ -904,16 +904,13 @@ export interface MappedChannelCategoryTypes {
904
904
  [ChannelType.GuildMedia]: MediaChannel;
905
905
  }
906
906
 
907
- export type CategoryChannelType = Exclude<
908
- ChannelType,
909
- | ChannelType.DM
910
- | ChannelType.GroupDM
911
- | ChannelType.PublicThread
912
- | ChannelType.AnnouncementThread
913
- | ChannelType.PrivateThread
914
- | ChannelType.GuildCategory
915
- | ChannelType.GuildDirectory
916
- >;
907
+ export type CategoryChannelChildTypes =
908
+ | ChannelType.GuildAnnouncement
909
+ | ChannelType.GuildVoice
910
+ | ChannelType.GuildText
911
+ | ChannelType.GuildStageVoice
912
+ | ChannelType.GuildForum
913
+ | ChannelType.GuildMedia;
917
914
 
918
915
  export class CategoryChannel extends GuildChannel {
919
916
  public get children(): CategoryChannelChildManager;
@@ -4010,7 +4007,7 @@ export class CategoryChannelChildManager extends DataManager<Snowflake, Category
4010
4007
 
4011
4008
  public channel: CategoryChannel;
4012
4009
  public get guild(): Guild;
4013
- public create<Type extends CategoryChannelType>(
4010
+ public create<Type extends CategoryChannelChildTypes>(
4014
4011
  options: CategoryCreateChannelOptions & { type: Type },
4015
4012
  ): Promise<MappedChannelCategoryTypes[Type]>;
4016
4013
  public create(options: CategoryCreateChannelOptions): Promise<TextChannel>;
@@ -4108,7 +4105,7 @@ export type MappedGuildChannelTypes = {
4108
4105
  [ChannelType.GuildCategory]: CategoryChannel;
4109
4106
  } & MappedChannelCategoryTypes;
4110
4107
 
4111
- export type GuildChannelTypes = CategoryChannelType | ChannelType.GuildCategory;
4108
+ export type GuildChannelTypes = CategoryChannelChildTypes | ChannelType.GuildCategory;
4112
4109
 
4113
4110
  export class GuildChannelManager extends CachedManager<Snowflake, GuildBasedChannel, GuildChannelResolvable> {
4114
4111
  private constructor(guild: Guild, iterable?: Iterable<RawGuildChannelData>);
@@ -5028,7 +5025,7 @@ export interface CategoryCreateChannelOptions {
5028
5025
  name: string;
5029
5026
  permissionOverwrites?: readonly OverwriteResolvable[] | ReadonlyCollection<Snowflake, OverwriteResolvable>;
5030
5027
  topic?: string;
5031
- type?: CategoryChannelType;
5028
+ type?: CategoryChannelChildTypes;
5032
5029
  nsfw?: boolean;
5033
5030
  bitrate?: number;
5034
5031
  userLimit?: number;