disgroove 3.0.1-dev.6d98962 → 3.0.1-dev.7231e6e

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.
@@ -19,7 +19,7 @@ export interface RawChannel {
19
19
  recipients?: Array<RawUser>;
20
20
  icon?: string | null;
21
21
  owner_id?: snowflake;
22
- application_id?: snowflake;
22
+ application_id?: snowflake | null;
23
23
  managed?: boolean;
24
24
  parent_id?: snowflake | null;
25
25
  last_pin_timestamp?: timestamp | null;
@@ -31,6 +31,7 @@ export interface RawChannel {
31
31
  member?: RawThreadMember;
32
32
  default_auto_archive_duration?: number;
33
33
  permissions?: string;
34
+ app_permissions?: string;
34
35
  flags?: ChannelFlags;
35
36
  total_message_sent?: number;
36
37
  available_tags?: Array<RawForumTag>;
@@ -99,7 +100,7 @@ export interface Channel {
99
100
  recipients?: Array<User>;
100
101
  icon?: string | null;
101
102
  ownerId?: snowflake;
102
- applicationId?: snowflake;
103
+ applicationId?: snowflake | null;
103
104
  managed?: boolean;
104
105
  parentId?: snowflake | null;
105
106
  lastPinTimestamp?: timestamp | null;
@@ -111,6 +112,7 @@ export interface Channel {
111
112
  member?: ThreadMember;
112
113
  defaultAutoArchiveDuration?: number;
113
114
  permissions?: string;
115
+ appPermissions?: string;
114
116
  flags?: ChannelFlags;
115
117
  totalMessageSent?: number;
116
118
  availableTags?: Array<ForumTag>;
@@ -15,7 +15,7 @@ export interface RawButton {
15
15
  style: ButtonStyles;
16
16
  label?: string;
17
17
  emoji?: Pick<RawEmoji, "name" | "id" | "animated">;
18
- custom_id: string;
18
+ custom_id?: string;
19
19
  sku_id?: snowflake;
20
20
  url?: string;
21
21
  disabled?: boolean;
@@ -238,6 +238,7 @@ export interface RawFileUpload {
238
238
  min_values?: number;
239
239
  max_values?: number;
240
240
  required?: boolean;
241
+ file_types?: Array<"image" | "video" | "audio" | string>;
241
242
  }
242
243
  /** https://discord.com/developers/docs/components/reference#file-upload-file-upload-interaction-response-structure */
243
244
  export interface RawFileUploadInteractionResponse {
@@ -331,7 +332,7 @@ export interface Button {
331
332
  style: ButtonStyles;
332
333
  label?: string;
333
334
  emoji?: Pick<Emoji, "name" | "id" | "animated">;
334
- customId: string;
335
+ customId?: string;
335
336
  skuId?: snowflake;
336
337
  url?: string;
337
338
  disabled?: boolean;
@@ -554,6 +555,7 @@ export interface FileUpload {
554
555
  minValues?: number;
555
556
  maxValues?: number;
556
557
  required?: boolean;
558
+ fileTypes?: Array<"image" | "video" | "audio" | string>;
557
559
  }
558
560
  /** https://discord.com/developers/docs/components/reference#file-upload-file-upload-interaction-response-structure */
559
561
  export interface FileUploadInteractionResponse {
@@ -1,4 +1,4 @@
1
- import type { ActivityFlags, ActivityType, AnimationTypes, GatewayEvents, GatewayIntents, GatewayOPCodes, GuildMemberFlags, InviteTargetTypes, ReactionTypes, StatusTypes, TriggerTypes } from "../constants";
1
+ import type { ActivityFlags, ActivityType, AnimationTypes, ChannelTypes, GatewayCapabilities, GatewayEvents, GatewayIntents, GatewayOPCodes, GuildMemberFlags, InviteTargetTypes, ReactionTypes, StatusTypes, TriggerTypes } from "../constants";
2
2
  import type { RawApplication, Application } from "./application";
3
3
  import type { RawAutoModerationAction, AutoModerationAction } from "./auto-moderation";
4
4
  import type { RawChannel, RawThreadMember, Channel, ThreadMember } from "./channel";
@@ -28,6 +28,7 @@ export interface RawIdentify {
28
28
  shard?: [number, number];
29
29
  presence?: Partial<Pick<RawGatewayPresenceUpdate, "since" | "activities" | "status" | "afk">>;
30
30
  intents: GatewayIntents;
31
+ capabilities?: GatewayCapabilities;
31
32
  }
32
33
  /** https://discord.com/developers/docs/events/gateway-events#identify-identify-connection-properties */
33
34
  export interface RawIdentifyConnectionProperties {
@@ -54,6 +55,11 @@ export interface RawRequestGuildMembers {
54
55
  export interface RawRequestSoundboardSounds {
55
56
  guild_ids: Array<snowflake>;
56
57
  }
58
+ /** https://discord.com/developers/docs/topics/gateway-events#request-channel-info */
59
+ export interface RawRequestChannelInfo {
60
+ guild_id: snowflake;
61
+ fields: Array<string>;
62
+ }
57
63
  /** https://discord.com/developers/docs/events/gateway-events#update-presence-gateway-presence-update-structure */
58
64
  export interface RawGatewayPresenceUpdate {
59
65
  since: number | null;
@@ -92,6 +98,29 @@ export interface RawAutoModerationActionExecutionEvent {
92
98
  matched_keyword: string | null;
93
99
  matched_content: string | null;
94
100
  }
101
+ /** https://docs.discord.com/developers/events/gateway-events#channel-info-channel-info-structure */
102
+ export interface RawChannelInfoEvent {
103
+ guild_id: snowflake;
104
+ channels: Array<RawChannelInfoChannel>;
105
+ }
106
+ /** https://docs.discord.com/developers/events/gateway-events#channel-info-channel-info-channel-structure */
107
+ export interface RawChannelInfoChannel {
108
+ id: snowflake;
109
+ status?: string | null;
110
+ voice_start_time?: number | null;
111
+ }
112
+ /** https://docs.discord.com/developers/events/gateway-events#voice-channel-status-update */
113
+ export interface RawVoiceChannelStatusUpdateEvent {
114
+ id: snowflake;
115
+ guild_id: snowflake;
116
+ status: string | null;
117
+ }
118
+ /** https://docs.discord.com/developers/events/gateway-events#voice-channel-start-time-update */
119
+ export interface RawVoiceChannelStartTimeUpdateEvent {
120
+ id: snowflake;
121
+ guild_id: snowflake;
122
+ voice_start_time?: number | null;
123
+ }
95
124
  /** https://discord.com/developers/docs/events/gateway-events#thread-list-sync-thread-list-sync-event-fields */
96
125
  export interface RawThreadListSyncEvent {
97
126
  guild_id: snowflake;
@@ -281,6 +310,7 @@ export interface RawMessageCreateEventExtra {
281
310
  guild_id?: snowflake;
282
311
  member?: RawGuildMember;
283
312
  mentions: Array<RawUser>;
313
+ channel_type?: ChannelTypes;
284
314
  }
285
315
  /** https://discord.com/developers/docs/events/gateway-events#message-delete-message-delete-event-fields */
286
316
  export interface RawMessageDeleteEvent {
@@ -343,6 +373,7 @@ export interface RawClientStatus {
343
373
  desktop?: string;
344
374
  mobile?: string;
345
375
  web?: string;
376
+ vr?: string;
346
377
  }
347
378
  /** https://discord.com/developers/docs/events/gateway-events#activity-object-activity-structure */
348
379
  export interface RawActivity {
@@ -469,6 +500,7 @@ export interface Identify {
469
500
  shard?: [number, number];
470
501
  presence?: Partial<Pick<GatewayPresenceUpdate, "since" | "activities" | "status" | "afk">>;
471
502
  intents: GatewayIntents;
503
+ capabilities?: GatewayCapabilities;
472
504
  }
473
505
  /** https://discord.com/developers/docs/events/gateway-events#identify-identify-connection-properties */
474
506
  export interface IdentifyConnectionProperties {
@@ -495,6 +527,11 @@ export interface RequestGuildMembers {
495
527
  export interface RequestSoundboardSounds {
496
528
  guildIds: Array<snowflake>;
497
529
  }
530
+ /** https://discord.com/developers/docs/topics/gateway-events#request-channel-info */
531
+ export interface RequestChannelInfo {
532
+ guildId: snowflake;
533
+ fields: Array<string>;
534
+ }
498
535
  /** https://discord.com/developers/docs/events/gateway-events#update-presence-gateway-presence-update-structure */
499
536
  export interface GatewayPresenceUpdate {
500
537
  since: number | null;
@@ -533,6 +570,29 @@ export interface AutoModerationActionExecutionEvent {
533
570
  matchedKeyword: string | null;
534
571
  matchedContent: string | null;
535
572
  }
573
+ /** https://docs.discord.com/developers/events/gateway-events#channel-info-channel-info-structure */
574
+ export interface ChannelInfoEvent {
575
+ guildId: snowflake;
576
+ channels: Array<RawChannelInfoChannel>;
577
+ }
578
+ /** https://docs.discord.com/developers/events/gateway-events#channel-info-channel-info-channel-structure */
579
+ export interface ChannelInfoChannel {
580
+ id: snowflake;
581
+ status?: string | null;
582
+ voiceStartTime?: number | null;
583
+ }
584
+ /** https://docs.discord.com/developers/events/gateway-events#voice-channel-status-update */
585
+ export interface VoiceChannelStatusUpdateEvent {
586
+ id: snowflake;
587
+ guildId: snowflake;
588
+ status: string | null;
589
+ }
590
+ /** https://docs.discord.com/developers/events/gateway-events#voice-channel-start-time-update */
591
+ export interface VoiceChannelStartTimeUpdateEvent {
592
+ id: snowflake;
593
+ guildId: snowflake;
594
+ voiceStartTime?: number | null;
595
+ }
536
596
  /** https://discord.com/developers/docs/events/gateway-events#thread-list-sync-thread-list-sync-event-fields */
537
597
  export interface ThreadListSyncEvent {
538
598
  guildId: snowflake;
@@ -722,6 +782,7 @@ export interface MessageCreateEventExtra {
722
782
  guildId?: snowflake;
723
783
  member?: GuildMember;
724
784
  mentions: Array<User>;
785
+ channelType?: ChannelTypes;
725
786
  }
726
787
  /** https://discord.com/developers/docs/events/gateway-events#message-delete-message-delete-event-fields */
727
788
  export interface MessageDeleteEvent {
@@ -784,6 +845,7 @@ export interface ClientStatus {
784
845
  desktop?: string;
785
846
  mobile?: string;
786
847
  web?: string;
848
+ vr?: string;
787
849
  }
788
850
  /** https://discord.com/developers/docs/events/gateway-events#activity-object-activity-structure */
789
851
  export interface Activity {
@@ -1,6 +1,7 @@
1
- import type { LobbyMemberFlags } from "../constants";
1
+ import type { LobbyMemberFlags, MessageFlags, MessageTypes } from "../constants";
2
2
  import type { RawChannel } from "./channel";
3
3
  import type { snowflake } from "./common";
4
+ import { RawUser, User } from "./user";
4
5
  /** https://discord.com/developers/docs/resources/lobby#lobby-object */
5
6
  export interface RawLobby {
6
7
  id: snowflake;
@@ -14,6 +15,24 @@ export interface RawLobbyMember {
14
15
  id: snowflake;
15
16
  metadata?: Record<string, string> | null;
16
17
  flags?: LobbyMemberFlags;
18
+ additional_name?: string;
19
+ }
20
+ /** https://docs.discord.com/developers/resources/lobby#lobby-message-object */
21
+ export interface RawLobbyMessage {
22
+ id: snowflake;
23
+ type: MessageTypes;
24
+ content: string;
25
+ lobby_id: snowflake;
26
+ channel_id: snowflake;
27
+ author: RawUser;
28
+ metadata?: Record<string, string> | null;
29
+ moderation_metadata?: Record<string, string> | null;
30
+ flags: MessageFlags;
31
+ application_id: snowflake;
32
+ }
33
+ /** https://docs.discord.com/developers/resources/lobby#create-lobby-channel-invite-for-user#lobby-invite-object */
34
+ export interface RawLobbyInvite {
35
+ code: string;
17
36
  }
18
37
  /** https://discord.com/developers/docs/resources/lobby#lobby-object */
19
38
  export interface Lobby {
@@ -28,4 +47,22 @@ export interface LobbyMember {
28
47
  id: snowflake;
29
48
  metadata?: Record<string, string> | null;
30
49
  flags?: LobbyMemberFlags;
50
+ additionalName?: string;
51
+ }
52
+ /** https://docs.discord.com/developers/resources/lobby#lobby-message-object */
53
+ export interface LobbyMessage {
54
+ id: snowflake;
55
+ type: MessageTypes;
56
+ content: string;
57
+ lobbyId: snowflake;
58
+ channelId: snowflake;
59
+ author: User;
60
+ metadata?: Record<string, string> | null;
61
+ moderationMetadata?: Record<string, string> | null;
62
+ flags: MessageFlags;
63
+ applicationId: snowflake;
64
+ }
65
+ /** https://docs.discord.com/developers/resources/lobby#create-lobby-channel-invite-for-user#lobby-invite-object */
66
+ export interface LobbyInvite {
67
+ code: string;
31
68
  }
@@ -197,6 +197,16 @@ export interface RawAttachment {
197
197
  clip_created_at?: timestamp;
198
198
  application?: RawApplication | null;
199
199
  }
200
+ /** https://docs.discord.com/developers/resources/message#attachment-object-attachment-request-structure */
201
+ export interface RawAttachmentRequest {
202
+ id: snowflake | number;
203
+ filename?: string;
204
+ title?: string;
205
+ description?: string;
206
+ duration_secs?: number;
207
+ waveform?: string;
208
+ is_spoiler?: boolean;
209
+ }
200
210
  /** https://discord.com/developers/docs/resources/message#channel-mention-object-channel-mention-structure */
201
211
  export interface RawChannelMention {
202
212
  id: snowflake;
@@ -419,6 +429,16 @@ export interface Attachment {
419
429
  clipCreatedAt?: timestamp;
420
430
  application?: Application | null;
421
431
  }
432
+ /** https://docs.discord.com/developers/resources/message#attachment-object-attachment-request-structure */
433
+ export interface AttachmentRequest {
434
+ id: snowflake | number;
435
+ filename?: string;
436
+ title?: string;
437
+ description?: string;
438
+ durationSecs?: number;
439
+ waveform?: string;
440
+ isSpoiler?: boolean;
441
+ }
422
442
  /** https://discord.com/developers/docs/resources/message#channel-mention-object-channel-mention-structure */
423
443
  export interface ChannelMention {
424
444
  id: snowflake;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disgroove",
3
- "version": "3.0.1-dev.6d98962",
3
+ "version": "3.0.1-dev.7231e6e",
4
4
  "description": "A module to interface with Discord",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "wrapper"
20
20
  ],
21
- "author": "XenKys",
21
+ "author": "Sergio Gotuzzo",
22
22
  "license": "MIT",
23
23
  "bugs": {
24
24
  "url": "https://github.com/sergiogotuzzo/disgroove/issues"
@@ -28,7 +28,8 @@
28
28
  "@types/node": "^22.19.3",
29
29
  "@types/ws": "^8.18.1",
30
30
  "typescript": "^5.9.3",
31
- "undici-types": "^7.18.2"
31
+ "undici-types": "^7.18.2",
32
+ "@types/bun": "latest"
32
33
  },
33
34
  "dependencies": {
34
35
  "ws": "^8.19.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disgroove",
3
- "version": "3.0.1-dev.6d98962",
3
+ "version": "3.0.1-dev.7231e6e",
4
4
  "description": "A module to interface with Discord",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "wrapper"
20
20
  ],
21
- "author": "XenKys",
21
+ "author": "Sergio Gotuzzo",
22
22
  "license": "MIT",
23
23
  "bugs": {
24
24
  "url": "https://github.com/sergiogotuzzo/disgroove/issues"
@@ -28,9 +28,10 @@
28
28
  "@types/node": "^22.19.3",
29
29
  "@types/ws": "^8.18.1",
30
30
  "typescript": "^5.9.3",
31
- "undici-types": "^7.18.2"
31
+ "undici-types": "^7.18.2",
32
+ "@types/bun": "latest"
32
33
  },
33
34
  "dependencies": {
34
35
  "ws": "^8.19.0"
35
36
  }
36
- }
37
+ }