disgroove 1.2.9 → 1.3.0-dev.19adbb0

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.
Files changed (85) hide show
  1. package/dist/Client.d.ts +40 -40
  2. package/dist/Client.js +75 -75
  3. package/dist/Client.js.map +1 -1
  4. package/dist/gateway/Shard.js +30 -34
  5. package/dist/gateway/Shard.js.map +1 -1
  6. package/dist/rest/RequestsManager.js +1 -1
  7. package/dist/rest/RequestsManager.js.map +1 -1
  8. package/dist/structures/Application.d.ts +70 -70
  9. package/dist/structures/Application.js +128 -155
  10. package/dist/structures/Application.js.map +1 -1
  11. package/dist/structures/ApplicationCommand.d.ts +4 -4
  12. package/dist/structures/ApplicationCommand.js +19 -19
  13. package/dist/structures/ApplicationCommand.js.map +1 -1
  14. package/dist/structures/AutoModerationRule.d.ts +2 -2
  15. package/dist/structures/AutoModerationRule.js +7 -7
  16. package/dist/structures/AutoModerationRule.js.map +1 -1
  17. package/dist/structures/Channel.d.ts +126 -126
  18. package/dist/structures/Channel.js +258 -258
  19. package/dist/structures/Channel.js.map +1 -1
  20. package/dist/structures/Emoji.d.ts +2 -2
  21. package/dist/structures/Emoji.js +9 -9
  22. package/dist/structures/Emoji.js.map +1 -1
  23. package/dist/structures/Entitlement.d.ts +24 -0
  24. package/dist/structures/Entitlement.js +68 -0
  25. package/dist/structures/Entitlement.js.map +1 -0
  26. package/dist/structures/Guild.d.ts +305 -305
  27. package/dist/structures/Guild.js +616 -624
  28. package/dist/structures/Guild.js.map +1 -1
  29. package/dist/structures/GuildMember.d.ts +9 -9
  30. package/dist/structures/GuildMember.js +30 -30
  31. package/dist/structures/GuildMember.js.map +1 -1
  32. package/dist/structures/GuildScheduledEvent.d.ts +2 -2
  33. package/dist/structures/GuildScheduledEvent.js +5 -5
  34. package/dist/structures/GuildScheduledEvent.js.map +1 -1
  35. package/dist/structures/GuildTemplate.d.ts +4 -4
  36. package/dist/structures/GuildTemplate.js +9 -9
  37. package/dist/structures/GuildTemplate.js.map +1 -1
  38. package/dist/structures/Integration.js +2 -2
  39. package/dist/structures/Integration.js.map +1 -1
  40. package/dist/structures/Interaction.d.ts +27 -27
  41. package/dist/structures/Interaction.js +90 -83
  42. package/dist/structures/Interaction.js.map +1 -1
  43. package/dist/structures/Invite.js +1 -1
  44. package/dist/structures/Invite.js.map +1 -1
  45. package/dist/structures/Message.d.ts +20 -17
  46. package/dist/structures/Message.js +81 -55
  47. package/dist/structures/Message.js.map +1 -1
  48. package/dist/structures/PartialApplication.d.ts +70 -70
  49. package/dist/structures/PartialApplication.js +128 -155
  50. package/dist/structures/PartialApplication.js.map +1 -1
  51. package/dist/structures/Role.d.ts +2 -2
  52. package/dist/structures/Role.js +7 -7
  53. package/dist/structures/Role.js.map +1 -1
  54. package/dist/structures/SKU.d.ts +23 -0
  55. package/dist/structures/SKU.js +63 -0
  56. package/dist/structures/SKU.js.map +1 -0
  57. package/dist/structures/StageInstance.d.ts +2 -2
  58. package/dist/structures/StageInstance.js +7 -7
  59. package/dist/structures/StageInstance.js.map +1 -1
  60. package/dist/structures/Sticker.d.ts +2 -2
  61. package/dist/structures/Sticker.js +9 -9
  62. package/dist/structures/Sticker.js.map +1 -1
  63. package/dist/structures/Team.js +2 -2
  64. package/dist/structures/Team.js.map +1 -1
  65. package/dist/structures/TestEntitlement.d.ts +23 -0
  66. package/dist/structures/TestEntitlement.js +61 -0
  67. package/dist/structures/TestEntitlement.js.map +1 -0
  68. package/dist/structures/UnavailableGuild.d.ts +305 -305
  69. package/dist/structures/UnavailableGuild.js +609 -610
  70. package/dist/structures/UnavailableGuild.js.map +1 -1
  71. package/dist/structures/User.d.ts +11 -11
  72. package/dist/structures/User.js +35 -34
  73. package/dist/structures/User.js.map +1 -1
  74. package/dist/structures/Webhook.d.ts +26 -26
  75. package/dist/structures/Webhook.js +115 -147
  76. package/dist/structures/Webhook.js.map +1 -1
  77. package/dist/structures/index.d.ts +3 -0
  78. package/dist/structures/index.js +3 -0
  79. package/dist/structures/index.js.map +1 -1
  80. package/dist/types/interaction.d.ts +12 -12
  81. package/dist/types/message-components.d.ts +4 -4
  82. package/dist/utils/Util.d.ts +8 -482
  83. package/dist/utils/Util.js +169 -150
  84. package/dist/utils/Util.js.map +1 -1
  85. package/package.json +1 -1
@@ -15,6 +15,56 @@ class PartialApplication extends _1.Base {
15
15
  if (data.flags !== undefined)
16
16
  this.flags = data.flags;
17
17
  }
18
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
19
+ async bulkEditGlobalApplicationCommands(commands) {
20
+ return this.client.rest
21
+ .put(rest_1.Endpoints.applicationCommands(this.id), {
22
+ json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
23
+ })
24
+ .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
25
+ }
26
+ /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
27
+ async bulkEditGuildApplicationCommands(guildId, commands) {
28
+ return this.client.rest
29
+ .put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
30
+ json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
31
+ })
32
+ .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
33
+ }
34
+ /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
35
+ async createGlobalApplicationCommand(options) {
36
+ return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationCommands(this.id), {
37
+ json: this.client.util.applicationCommandToRaw(options),
38
+ }), this.client);
39
+ }
40
+ /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
41
+ async createGuildApplicationCommand(guildId, options) {
42
+ return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
43
+ json: this.client.util.applicationCommandToRaw(options),
44
+ }), this.client);
45
+ }
46
+ /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
47
+ async createTestEntitlement(options) {
48
+ return new _1.TestEntitlement(await this.client.rest.post(rest_1.Endpoints.applicationEntitlements(this.id), {
49
+ json: {
50
+ sku_id: options.skuId,
51
+ owner_id: options.ownerId,
52
+ owner_type: options.ownerType,
53
+ },
54
+ }), this.client);
55
+ }
56
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
57
+ deleteGlobalApplicationCommand(commandId) {
58
+ this.client.rest.delete(rest_1.Endpoints.applicationCommand(this.id, commandId));
59
+ }
60
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
61
+ deleteGuildApplicationCommand(guildId, commandId) {
62
+ this.client.rest.delete(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId));
63
+ }
64
+ /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
65
+ deleteTestEntitlement(entitlementId) {
66
+ this.client.rest.delete(rest_1.Endpoints.applicationEntitlement(this.id, entitlementId));
67
+ }
18
68
  /** https://discord.com/developers/docs/resources/application#edit-current-application */
19
69
  async edit(options) {
20
70
  return new _1.Application(await this.client.rest.patch(rest_1.Endpoints.applicationCurrentUser(), {
@@ -31,25 +81,33 @@ class PartialApplication extends _1.Base {
31
81
  },
32
82
  }), this.client);
33
83
  }
34
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
35
- async getGlobalApplicationCommands(options) {
84
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
85
+ async editApplicationCommandPermissions(guildId, commandId, options) {
36
86
  return this.client.rest
37
- .get(rest_1.Endpoints.applicationCommands(this.id), {
38
- query: {
39
- with_localizations: options.withLocalizations,
87
+ .put(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId), {
88
+ json: {
89
+ permissions: options.permissions.map((option) => ({
90
+ id: option.id,
91
+ application_id: option.applicationId,
92
+ guild_id: option.guildId,
93
+ permissions: option.permissions.map((permission) => ({
94
+ id: permission.id,
95
+ type: permission.type,
96
+ permission: permission.permission,
97
+ })),
98
+ })),
40
99
  },
41
100
  })
42
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
43
- }
44
- /** https://discord.com/developers/docs/interactions/application-commands#create-global-application-command */
45
- async createGlobalApplicationCommand(options) {
46
- return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationCommands(this.id), {
47
- json: this.client.util.applicationCommandToRaw(options),
48
- }), this.client);
49
- }
50
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
51
- async getGlobalApplicationCommand(commandId) {
52
- return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationCommand(this.id, commandId)), this.client);
101
+ .then((response) => ({
102
+ id: response.id,
103
+ applicationId: response.application_id,
104
+ guildId: response.guild_id,
105
+ permissions: response.permissions.map((permission) => ({
106
+ id: permission.id,
107
+ type: permission.type,
108
+ permission: permission.permission,
109
+ })),
110
+ }));
53
111
  }
54
112
  /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
55
113
  async editGlobalApplicationCommand(commandId, options) {
@@ -57,53 +115,68 @@ class PartialApplication extends _1.Base {
57
115
  json: this.client.util.applicationCommandToRaw(options),
58
116
  }), this.client);
59
117
  }
60
- /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
61
- deleteGlobalApplicationCommand(commandId) {
62
- this.client.rest.delete(rest_1.Endpoints.applicationCommand(this.id, commandId));
118
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
119
+ async editGuildApplicationCommand(guildId, commandId, options) {
120
+ return new _1.ApplicationCommand(await this.client.rest.patch(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId), {
121
+ json: this.client.util.applicationCommandToRaw(options),
122
+ }), this.client);
63
123
  }
64
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
65
- async bulkOverwriteGlobalApplicationCommands(commands) {
124
+ /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
125
+ async getApplicationCommandPermissions(guildId, commandId) {
66
126
  return this.client.rest
67
- .put(rest_1.Endpoints.applicationCommands(this.id), {
68
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
127
+ .get(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId))
128
+ .then((response) => response.map((permissions) => ({
129
+ id: permissions.id,
130
+ applicationId: permissions.application_id,
131
+ guildId: permissions.guild_id,
132
+ permissions: permissions.permissions.map((permission) => ({
133
+ id: permission.id,
134
+ type: permission.type,
135
+ permission: permission.permission,
136
+ })),
137
+ })));
138
+ }
139
+ /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
140
+ async getEntitlements(options) {
141
+ return this.client.rest
142
+ .get(rest_1.Endpoints.applicationEntitlements(this.id), {
143
+ query: {
144
+ user_id: options?.userId,
145
+ sku_ids: options?.skuIds,
146
+ before: options?.before,
147
+ after: options?.after,
148
+ limit: options?.limit,
149
+ guild_id: options?.guildId,
150
+ exclude_ended: options?.excludeEnded,
151
+ },
69
152
  })
70
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
153
+ .then((response) => response.map((data) => new _1.Entitlement(data, this.client)));
71
154
  }
72
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
73
- async getGuildApplicationCommands(guildId, options) {
155
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
156
+ async getGlobalApplicationCommand(commandId) {
157
+ return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationCommand(this.id, commandId)), this.client);
158
+ }
159
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
160
+ async getGlobalApplicationCommands(options) {
74
161
  return this.client.rest
75
- .get(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
162
+ .get(rest_1.Endpoints.applicationCommands(this.id), {
76
163
  query: {
77
- with_localizations: options?.withLocalizations,
164
+ with_localizations: options.withLocalizations,
78
165
  },
79
166
  })
80
167
  .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
81
168
  }
82
- /** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
83
- async createGuildApplicationCommand(guildId, options) {
84
- return new _1.ApplicationCommand(await this.client.rest.post(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
85
- json: this.client.util.applicationCommandToRaw(options),
86
- }), this.client);
87
- }
88
169
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
89
170
  async getGuildApplicationCommand(guildId, commandId) {
90
171
  return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId)), this.client);
91
172
  }
92
- /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
93
- async editGuildApplicationCommand(guildId, commandId, options) {
94
- return new _1.ApplicationCommand(await this.client.rest.patch(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId), {
95
- json: this.client.util.applicationCommandToRaw(options),
96
- }), this.client);
97
- }
98
- /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
99
- deleteGuildApplicationCommand(guildId, commandId) {
100
- this.client.rest.delete(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId));
101
- }
102
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-guild-application-commands */
103
- async bulkOverwriteGuildApplicationCommands(guildId, commands) {
173
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
174
+ async getGuildApplicationCommands(guildId, options) {
104
175
  return this.client.rest
105
- .put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
106
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
176
+ .get(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
177
+ query: {
178
+ with_localizations: options?.withLocalizations,
179
+ },
107
180
  })
108
181
  .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
109
182
  }
@@ -122,49 +195,6 @@ class PartialApplication extends _1.Base {
122
195
  })),
123
196
  })));
124
197
  }
125
- /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
126
- async getApplicationCommandPermissions(guildId, commandId) {
127
- return this.client.rest
128
- .get(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId))
129
- .then((response) => response.map((permissions) => ({
130
- id: permissions.id,
131
- applicationId: permissions.application_id,
132
- guildId: permissions.guild_id,
133
- permissions: permissions.permissions.map((permission) => ({
134
- id: permission.id,
135
- type: permission.type,
136
- permission: permission.permission,
137
- })),
138
- })));
139
- }
140
- /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
141
- async editApplicationCommandPermissions(guildId, commandId, options) {
142
- return this.client.rest
143
- .put(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId), {
144
- json: {
145
- permissions: options.permissions.map((option) => ({
146
- id: option.id,
147
- application_id: option.applicationId,
148
- guild_id: option.guildId,
149
- permissions: option.permissions.map((permission) => ({
150
- id: permission.id,
151
- type: permission.type,
152
- permission: permission.permission,
153
- })),
154
- })),
155
- },
156
- })
157
- .then((response) => ({
158
- id: response.id,
159
- applicationId: response.application_id,
160
- guildId: response.guild_id,
161
- permissions: response.permissions.map((permission) => ({
162
- id: permission.id,
163
- type: permission.type,
164
- permission: permission.permission,
165
- })),
166
- }));
167
- }
168
198
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
169
199
  async getApplicationRoleConnectionMetadataRecords() {
170
200
  return this.client.rest
@@ -178,6 +208,12 @@ class PartialApplication extends _1.Base {
178
208
  descriptionLocalizations: data.description_localizations,
179
209
  })));
180
210
  }
211
+ /** https://discord.com/developers/docs/monetization/skus#list-skus */
212
+ async getSKUs() {
213
+ return this.client.rest
214
+ .get(rest_1.Endpoints.applicationSKUs(this.id))
215
+ .then((response) => response.map((data) => new _1.SKU(data, this.client)));
216
+ }
181
217
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
182
218
  async updateApplicationRoleConnectionMetadataRecords() {
183
219
  return this.client.rest
@@ -191,75 +227,12 @@ class PartialApplication extends _1.Base {
191
227
  descriptionLocalizations: data.description_localizations,
192
228
  })));
193
229
  }
194
- /** https://discord.com/developers/docs/monetization/skus#list-skus */
195
- async getSKUs() {
196
- return this.client.rest
197
- .get(rest_1.Endpoints.applicationSKUs(this.id))
198
- .then((response) => response.map((data) => ({
199
- id: data.id,
200
- type: data.type,
201
- applicationId: data.application_id,
202
- name: data.name,
203
- slug: data.slug,
204
- flags: data.flags,
205
- })));
206
- }
207
- /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
208
- async getEntitlements(options) {
209
- return this.client.rest
210
- .get(rest_1.Endpoints.applicationEntitlements(this.id), {
211
- query: {
212
- user_id: options?.userId,
213
- sku_ids: options?.skuIds,
214
- before: options?.before,
215
- after: options?.after,
216
- limit: options?.limit,
217
- guild_id: options?.guildId,
218
- exclude_ended: options?.excludeEnded,
219
- },
220
- })
221
- .then((response) => response.map((data) => ({
222
- id: data.id,
223
- applicationId: data.application_id,
224
- deleted: data.deleted,
225
- guildId: data.guild_id,
226
- skuId: data.sku_id,
227
- type: data.type,
228
- userId: data.user_id,
229
- startsAt: data.starts_at,
230
- endsAt: data.ends_at,
231
- })));
232
- }
233
- /** https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement */
234
- async createTestEntitlement(options) {
235
- return this.client.rest
236
- .post(rest_1.Endpoints.applicationEntitlements(this.id), {
237
- json: {
238
- sku_id: options.skuId,
239
- owner_id: options.ownerId,
240
- owner_type: options.ownerType,
241
- },
242
- })
243
- .then((response) => ({
244
- id: response.id,
245
- applicationId: response.application_id,
246
- deleted: response.deleted,
247
- guildId: response.guild_id,
248
- skuId: response.sku_id,
249
- type: response.type,
250
- userId: response.user_id,
251
- }));
252
- }
253
- /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
254
- deleteTestEntitlement(entitlementId) {
255
- this.client.rest.delete(rest_1.Endpoints.applicationEntitlement(this.id, entitlementId));
256
- }
257
230
  toRaw() {
258
231
  return this.raw;
259
232
  }
260
233
  toJSON() {
261
234
  return {
262
- id: this.id,
235
+ ...super.toJSON(),
263
236
  flags: this.flags,
264
237
  };
265
238
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PartialApplication.js","sourceRoot":"","sources":["../../src/structures/PartialApplication.ts"],"names":[],"mappings":";;;AAAA,wBAA0D;AAiB1D,kCAAoC;AAQpC,MAAa,kBAAmB,SAAQ,OAAI;IACvB,GAAG,CAAuC;IAC7D,KAAK,CAAU;IAEf,YAAY,IAA0C,EAAE,MAAc;QACpE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAEhB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAEkB,KAAK,CAAC,IAA0C;QACjE,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS;YAAE,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACxD,CAAC;IAED,yFAAyF;IACzF,KAAK,CAAC,IAAI,CAAC,OAUV;QACC,OAAO,IAAI,cAAW,CACpB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAC1B,gBAAS,CAAC,sBAAsB,EAAE,EAClC;YACE,IAAI,EAAE;gBACJ,kBAAkB,EAAE,OAAO,CAAC,gBAAgB;gBAC5C,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,iCAAiC,EAC/B,OAAO,CAAC,8BAA8B;gBACxC,cAAc,EAAE,OAAO,CAAC,aAAa;gBACrC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,WAAW,EAAE,OAAO,CAAC,UAAU;gBAC/B,yBAAyB,EAAE,OAAO,CAAC,uBAAuB;gBAC1D,IAAI,EAAE,OAAO,CAAC,IAAI;aACnB;SACF,CACF,EACD,IAAI,CAAC,MAAM,CACZ,CAAC;IACJ,CAAC;IAED,4GAA4G;IAC5G,KAAK,CAAC,4BAA4B,CAAC,O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;QACb,OAAO;YACL,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;CACF;AAnpBD,gDAmpBC"}
@@ -18,6 +18,8 @@ export declare class Role extends Base {
18
18
  flags: RoleFlags;
19
19
  constructor(data: RawRole, client: Client);
20
20
  protected patch(data: RawRole): void;
21
+ /** https://discord.com/developers/docs/resources/guild#delete-guild-role */
22
+ delete(guildId: string, reason?: string): void;
21
23
  /** https://discord.com/developers/docs/resources/guild#modify-guild-role */
22
24
  edit(guildId: string, options?: {
23
25
  name?: string | null;
@@ -28,8 +30,6 @@ export declare class Role extends Base {
28
30
  unicodeEmoji?: string | null;
29
31
  mentionable?: boolean | null;
30
32
  }, reason?: string): Promise<Role>;
31
- /** https://discord.com/developers/docs/resources/guild#delete-guild-role */
32
- delete(guildId: string, reason?: string): void;
33
33
  toRaw(): RawRole & {
34
34
  guild_id?: string;
35
35
  };
@@ -45,6 +45,12 @@ class Role extends _1.Base {
45
45
  guildConnections: data.tags.guild_connections,
46
46
  };
47
47
  }
48
+ /** https://discord.com/developers/docs/resources/guild#delete-guild-role */
49
+ delete(guildId, reason) {
50
+ this.client.rest.delete(rest_1.Endpoints.guildRole(guildId, this.id), {
51
+ reason,
52
+ });
53
+ }
48
54
  /** https://discord.com/developers/docs/resources/guild#modify-guild-role */
49
55
  async edit(guildId, options, reason) {
50
56
  return new Role(await this.client.rest.patch(rest_1.Endpoints.guildRole(guildId, this.id), {
@@ -60,18 +66,12 @@ class Role extends _1.Base {
60
66
  reason,
61
67
  }), this.client);
62
68
  }
63
- /** https://discord.com/developers/docs/resources/guild#delete-guild-role */
64
- delete(guildId, reason) {
65
- this.client.rest.delete(rest_1.Endpoints.guildRole(guildId, this.id), {
66
- reason,
67
- });
68
- }
69
69
  toRaw() {
70
70
  return this.raw;
71
71
  }
72
72
  toJSON() {
73
73
  return {
74
- id: this.id,
74
+ ...super.toJSON(),
75
75
  name: this.name,
76
76
  color: this.color,
77
77
  hoist: this.hoist,
@@ -1 +1 @@
1
- {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../src/structures/Role.ts"],"names":[],"mappings":";;;AACA,kCAAoC;AAEpC,wBAAyB;AAGzB,6DAA6D;AAC7D,MAAa,IAAK,SAAQ,OAAI;IACT,GAAG,CAAU;IAChC,IAAI,CAAS;IACb,KAAK,CAAS;IACd,KAAK,CAAU;IACf,IAAI,CAAiB;IACrB,YAAY,CAAiB;IAC7B,QAAQ,CAAS;IACjB,WAAW,CAAS;IACpB,OAAO,CAAU;IACjB,WAAW,CAAU;IACrB,IAAI,CAAgB;IACpB,KAAK,CAAY;IAEjB,YAAY,IAAa,EAAE,MAAc;QACvC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAExB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAEkB,KAAK,CAAC,IAAa;QACpC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;YAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACnD,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS;YAClC,IAAI,CAAC,YAA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C,EACD,MAAe;QAEf,OAAO,IAAI,IAAI,CACb,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAC1B,gBAAS,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,EACrC;YACE,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO,EAAE,IAAI;gBACnB,WAAW,EAAE,OAAO,EAAE,WAAW;gBACjC,KAAK,EAAE,OAAO,EAAE,KAAK;gBACrB,KAAK,EAAE,OAAO,EAAE,KAAK;gBACrB,IAAI,EAAE,OAAO,EAAE,IAAI;gBACnB,aAAa,EAAE,OAAO,EAAE,YAAY;gBACpC,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC;YACD,MAAM;SACP,CACF,EACD,IAAI,CAAC,MAAM,CACZ,CAAC;IACJ,CAAC;IAEQ,KAAK;QAGZ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAEQ,MAAM;QACb,OAAO;YACL,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;CACF;AA5GD,oBA4GC"}
@@ -0,0 +1,23 @@
1
+ import type { Client } from "../Client";
2
+ import type { JSONSKU, RawSKU } from "../types";
3
+ import { Base } from ".";
4
+ import type { SKUFlags, SKUTypes } from "../constants";
5
+ /** https://discord.com/developers/docs/monetization/skus */
6
+ export declare class SKU extends Base {
7
+ protected raw: RawSKU;
8
+ type: SKUTypes;
9
+ dependentSkuId?: string | null;
10
+ applicationId: string;
11
+ manifestLabels?: null;
12
+ accessType?: number;
13
+ name: string;
14
+ features?: [];
15
+ releaseDate?: null;
16
+ slug: string;
17
+ flags: SKUFlags;
18
+ showAgeGate?: boolean;
19
+ constructor(data: RawSKU, client: Client);
20
+ protected patch(data: RawSKU): void;
21
+ toRaw(): RawSKU;
22
+ toJSON(): JSONSKU;
23
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SKU = void 0;
4
+ const _1 = require(".");
5
+ /** https://discord.com/developers/docs/monetization/skus */
6
+ class SKU extends _1.Base {
7
+ raw;
8
+ type;
9
+ dependentSkuId; // Undocumented
10
+ applicationId;
11
+ manifestLabels; // Undocumented
12
+ accessType; // Undocumented
13
+ name;
14
+ features; // Undocumented
15
+ releaseDate; // Undocumented
16
+ slug;
17
+ flags;
18
+ showAgeGate; // Undocumented
19
+ constructor(data, client) {
20
+ super(data.id, client);
21
+ this.raw = data;
22
+ this.type = data.type;
23
+ this.applicationId = data.application_id;
24
+ this.name = data.name;
25
+ this.slug = data.slug;
26
+ this.flags = data.flags;
27
+ }
28
+ patch(data) {
29
+ if (data.dependent_sku_id !== undefined)
30
+ this.dependentSkuId = data.dependent_sku_id;
31
+ if (data.manifest_labels !== undefined)
32
+ this.manifestLabels = data.manifest_labels;
33
+ if (data.access_type !== undefined)
34
+ this.accessType = data.access_type;
35
+ if (data.features !== undefined)
36
+ this.features = data.features;
37
+ if (data.release_date !== undefined)
38
+ this.releaseDate = data.release_date;
39
+ if (data.show_age_gate !== undefined)
40
+ this.showAgeGate = data.show_age_gate;
41
+ }
42
+ toRaw() {
43
+ return this.raw;
44
+ }
45
+ toJSON() {
46
+ return {
47
+ id: this.id,
48
+ type: this.type,
49
+ dependentSkuId: this.dependentSkuId,
50
+ applicationId: this.applicationId,
51
+ manifestLabels: this.manifestLabels,
52
+ accessType: this.accessType,
53
+ name: this.name,
54
+ features: this.features,
55
+ releaseDate: this.releaseDate,
56
+ slug: this.slug,
57
+ flags: this.flags,
58
+ showAgeGate: this.showAgeGate,
59
+ };
60
+ }
61
+ }
62
+ exports.SKU = SKU;
63
+ //# sourceMappingURL=SKU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SKU.js","sourceRoot":"","sources":["../../src/structures/SKU.ts"],"names":[],"mappings":";;;AAEA,wBAAyB;AAGzB,4DAA4D;AAC5D,MAAa,GAAI,SAAQ,OAAI;IACR,GAAG,CAAS;IAC/B,IAAI,CAAW;IACf,cAAc,CAAiB,CAAC,eAAe;IAC/C,aAAa,CAAS;IACtB,cAAc,CAAQ,CAAC,eAAe;IACtC,UAAU,CAAU,CAAC,eAAe;IACpC,IAAI,CAAS;IACb,QAAQ,CAAM,CAAC,eAAe;IAC9B,WAAW,CAAQ,CAAC,eAAe;IACnC,IAAI,CAAS;IACb,KAAK,CAAW;IAChB,WAAW,CAAW,CAAC,eAAe;IAEtC,YAAY,IAAY,EAAE,MAAc;QACtC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IAC1B,CAAC;IAEkB,KAAK,CAAC,IAAY;QACnC,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS;YACrC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC9C,IAAI,IAAI,CAAC,eAAe,KAAK,SAAS;YACpC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC;QAC7C,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS;YAAE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;QACvE,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS;YAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/D,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS;YAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC;QAC1E,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS;YAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC;IAC9E,CAAC;IAEQ,KAAK;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAEQ,MAAM;QACb,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC;IACJ,CAAC;CACF;AAxDD,kBAwDC"}
@@ -12,13 +12,13 @@ export declare class StageInstance extends Base {
12
12
  discoverableDisabled: boolean;
13
13
  guildScheduledEventId: string | null;
14
14
  constructor(data: RawStageInstance, client: Client);
15
+ /** https://discord.com/developers/docs/resources/stage-instance#delete-stage-instance */
16
+ delete(reason?: string): void;
15
17
  /** https://discord.com/developers/docs/resources/stage-instance#modify-stage-instance */
16
18
  edit(options: {
17
19
  topic?: string;
18
20
  privacyLevel?: PrivacyLevel;
19
21
  }, reason?: string): Promise<StageInstance>;
20
- /** https://discord.com/developers/docs/resources/stage-instance#delete-stage-instance */
21
- delete(reason?: string): void;
22
22
  toRaw(): RawStageInstance;
23
23
  toJSON(): JSONStageInstance;
24
24
  }
@@ -22,6 +22,12 @@ class StageInstance extends _1.Base {
22
22
  this.discoverableDisabled = data.discoverable_disabled;
23
23
  this.guildScheduledEventId = data.guild_scheduled_event_id;
24
24
  }
25
+ /** https://discord.com/developers/docs/resources/stage-instance#delete-stage-instance */
26
+ delete(reason) {
27
+ this.client.rest.delete(rest_1.Endpoints.stageInstance(this.channelId), {
28
+ reason,
29
+ });
30
+ }
25
31
  /** https://discord.com/developers/docs/resources/stage-instance#modify-stage-instance */
26
32
  async edit(options, reason) {
27
33
  return new StageInstance(await this.client.rest.patch(rest_1.Endpoints.stageInstance(this.channelId), {
@@ -32,18 +38,12 @@ class StageInstance extends _1.Base {
32
38
  reason,
33
39
  }), this.client);
34
40
  }
35
- /** https://discord.com/developers/docs/resources/stage-instance#delete-stage-instance */
36
- delete(reason) {
37
- this.client.rest.delete(rest_1.Endpoints.stageInstance(this.channelId), {
38
- reason,
39
- });
40
- }
41
41
  toRaw() {
42
42
  return this.raw;
43
43
  }
44
44
  toJSON() {
45
45
  return {
46
- id: this.id,
46
+ ...super.toJSON(),
47
47
  guildId: this.guildId,
48
48
  channelId: this.channelId,
49
49
  topic: this.topic,
@@ -1 +1 @@
1
- {"version":3,"file":"StageInstance.js","sourceRoot":"","sources":["../../src/structures/StageInstance.ts"],"names":[],"mappings":";;;AACA,kCAAoC;AAGpC,wBAAyB;AAEzB,mEAAmE;AACnE,MAAa,aAAc,SAAQ,OAAI;IAClB,GAAG,CAAmB;IACzC,OAAO,CAAS;IAChB,SAAS,CAAS;IAClB,KAAK,CAAS;IACd,YAAY,CAAS;IACrB,oBAAo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