@satorijs/adapter-discord 3.4.1 → 3.4.2

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.
@@ -57,6 +57,8 @@ export interface ReadyEvent {
57
57
  guilds: Partial<Guild>[];
58
58
  /** used for resuming connections */
59
59
  session_id: string;
60
+ /** gateway URL for resuming connections */
61
+ resume_gateway_url: string;
60
62
  /** the shard information associated with this session, if sent when identifying */
61
63
  shard?: [shard_id: integer, num_shards: integer];
62
64
  /** contains id and flags */
@@ -1,4 +1,4 @@
1
- import { Channel, Locale, snowflake } from '.';
1
+ import { Channel, integer, Locale, snowflake } from '.';
2
2
  /** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure */
3
3
  export interface ApplicationCommand {
4
4
  /** unique id of the command */
@@ -27,6 +27,10 @@ export interface ApplicationCommand {
27
27
  default_permission?: boolean;
28
28
  /** autoincrementing version identifier updated during substantial record changes */
29
29
  version: snowflake;
30
+ /** for option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`) */
31
+ min_length?: integer;
32
+ /** for option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`) */
33
+ max_length?: integer;
30
34
  }
31
35
  export declare namespace ApplicationCommand {
32
36
  /** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-types */
@@ -23,6 +23,12 @@ export interface Interaction {
23
23
  version: integer;
24
24
  /** for components, the message they were attached to */
25
25
  message?: Message;
26
+ /** bitwise set of permissions the app or bot has within the channel the interaction was sent from */
27
+ app_permissions?: string;
28
+ /** selected language of the invoking user */
29
+ locale?: string;
30
+ /** guild's preferred locale, if invoked in a guild */
31
+ guild_locale?: string;
26
32
  }
27
33
  /** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-type */
28
34
  export declare enum InteractionType {
package/lib/ws.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare class WsClient extends Adapter.WsClient<DiscordBot> {
6
6
  _d: number;
7
7
  _ping: NodeJS.Timeout;
8
8
  _sessionId: string;
9
+ _resumeUrl: string;
9
10
  prepare(): import("ws").WebSocket;
10
11
  heartbeat(): void;
11
12
  accept(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@satorijs/adapter-discord",
3
3
  "description": "Discord Adapter for Satorijs",
4
- "version": "3.4.1",
4
+ "version": "3.4.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [