disgroove 1.2.8-dev.2f4162c → 1.2.8-dev.d3ccf99

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.
@@ -24,7 +24,7 @@ class RequestsManager {
24
24
  url.searchParams.set(key, String(value));
25
25
  }
26
26
  let headers = {
27
- "User-Agent": `DiscordBot (https://github.com/XenKys/disgroove, 1.2.8-dev.2f4162c)`,
27
+ "User-Agent": `DiscordBot (https://github.com/XenKys/disgroove, 1.2.8-dev.d3ccf99)`,
28
28
  };
29
29
  let body;
30
30
  if (withAuthorization)
@@ -17,6 +17,7 @@ export interface RawSelectMenu {
17
17
  options?: Array<RawSelectOption>;
18
18
  channel_types?: Array<ChannelTypes>;
19
19
  placeholder?: string;
20
+ default_values?: Array<RawDefaultValue>;
20
21
  min_values?: number;
21
22
  max_values?: number;
22
23
  disabled?: boolean;
@@ -29,6 +30,11 @@ export interface RawSelectOption {
29
30
  emoji?: Partial<Pick<RawEmoji, "name" | "id" | "animated">>;
30
31
  default?: boolean;
31
32
  }
33
+ /** https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-default-value-structure */
34
+ export interface RawDefaultValue {
35
+ id: string;
36
+ type: string;
37
+ }
32
38
  /** https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-structure */
33
39
  export interface RawTextInput {
34
40
  type: ComponentTypes.TextInput;
@@ -88,6 +94,7 @@ export interface JSONSelectMenu {
88
94
  options?: Array<JSONSelectOption>;
89
95
  channelTypes?: Array<ChannelTypes>;
90
96
  placeholder?: string;
97
+ defaultValues?: Array<JSONDefaultValue>;
91
98
  minValues?: number;
92
99
  maxValues?: number;
93
100
  disabled?: boolean;
@@ -99,6 +106,10 @@ export interface JSONSelectOption {
99
106
  emoji?: Partial<Pick<JSONEmoji, "name" | "id" | "animated">>;
100
107
  default?: boolean;
101
108
  }
109
+ export interface JSONDefaultValue {
110
+ id: string;
111
+ type: string;
112
+ }
102
113
  export interface JSONTextInput {
103
114
  type: ComponentTypes.TextInput;
104
115
  customId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "disgroove",
3
- "version": "1.2.8-dev.2f4162c",
3
+ "version": "1.2.8-dev.d3ccf99",
4
4
  "description": "An NPM package to interact with the Discord API",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",