disgroove 1.2.9 → 1.3.0-dev.4d9f89d

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 (73) hide show
  1. package/dist/Client.d.ts +37 -37
  2. package/dist/Client.js +75 -75
  3. package/dist/Client.js.map +1 -1
  4. package/dist/gateway/Shard.js +27 -1
  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 +67 -67
  9. package/dist/structures/Application.js +150 -150
  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/Guild.d.ts +305 -305
  24. package/dist/structures/Guild.js +616 -624
  25. package/dist/structures/Guild.js.map +1 -1
  26. package/dist/structures/GuildMember.d.ts +9 -9
  27. package/dist/structures/GuildMember.js +30 -30
  28. package/dist/structures/GuildMember.js.map +1 -1
  29. package/dist/structures/GuildScheduledEvent.d.ts +2 -2
  30. package/dist/structures/GuildScheduledEvent.js +5 -5
  31. package/dist/structures/GuildScheduledEvent.js.map +1 -1
  32. package/dist/structures/GuildTemplate.d.ts +4 -4
  33. package/dist/structures/GuildTemplate.js +9 -9
  34. package/dist/structures/GuildTemplate.js.map +1 -1
  35. package/dist/structures/Integration.js +2 -2
  36. package/dist/structures/Integration.js.map +1 -1
  37. package/dist/structures/Interaction.d.ts +24 -24
  38. package/dist/structures/Interaction.js +88 -67
  39. package/dist/structures/Interaction.js.map +1 -1
  40. package/dist/structures/Invite.js +1 -1
  41. package/dist/structures/Invite.js.map +1 -1
  42. package/dist/structures/Message.d.ts +20 -17
  43. package/dist/structures/Message.js +81 -55
  44. package/dist/structures/Message.js.map +1 -1
  45. package/dist/structures/PartialApplication.d.ts +67 -67
  46. package/dist/structures/PartialApplication.js +150 -150
  47. package/dist/structures/PartialApplication.js.map +1 -1
  48. package/dist/structures/Role.d.ts +2 -2
  49. package/dist/structures/Role.js +7 -7
  50. package/dist/structures/Role.js.map +1 -1
  51. package/dist/structures/StageInstance.d.ts +2 -2
  52. package/dist/structures/StageInstance.js +7 -7
  53. package/dist/structures/StageInstance.js.map +1 -1
  54. package/dist/structures/Sticker.d.ts +2 -2
  55. package/dist/structures/Sticker.js +9 -9
  56. package/dist/structures/Sticker.js.map +1 -1
  57. package/dist/structures/Team.js +2 -2
  58. package/dist/structures/Team.js.map +1 -1
  59. package/dist/structures/UnavailableGuild.d.ts +305 -305
  60. package/dist/structures/UnavailableGuild.js +609 -610
  61. package/dist/structures/UnavailableGuild.js.map +1 -1
  62. package/dist/structures/User.d.ts +11 -11
  63. package/dist/structures/User.js +35 -34
  64. package/dist/structures/User.js.map +1 -1
  65. package/dist/structures/Webhook.d.ts +26 -26
  66. package/dist/structures/Webhook.js +115 -147
  67. package/dist/structures/Webhook.js.map +1 -1
  68. package/dist/types/interaction.d.ts +12 -12
  69. package/dist/types/message-components.d.ts +4 -4
  70. package/dist/utils/Util.d.ts +8 -482
  71. package/dist/utils/Util.js +169 -150
  72. package/dist/utils/Util.js.map +1 -1
  73. package/package.json +1 -1
@@ -15,6 +15,66 @@ 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 this.client.rest
49
+ .post(rest_1.Endpoints.applicationEntitlements(this.id), {
50
+ json: {
51
+ sku_id: options.skuId,
52
+ owner_id: options.ownerId,
53
+ owner_type: options.ownerType,
54
+ },
55
+ })
56
+ .then((response) => ({
57
+ id: response.id,
58
+ applicationId: response.application_id,
59
+ deleted: response.deleted,
60
+ guildId: response.guild_id,
61
+ skuId: response.sku_id,
62
+ type: response.type,
63
+ userId: response.user_id,
64
+ }));
65
+ }
66
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
67
+ deleteGlobalApplicationCommand(commandId) {
68
+ this.client.rest.delete(rest_1.Endpoints.applicationCommand(this.id, commandId));
69
+ }
70
+ /** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
71
+ deleteGuildApplicationCommand(guildId, commandId) {
72
+ this.client.rest.delete(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId));
73
+ }
74
+ /** https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement */
75
+ deleteTestEntitlement(entitlementId) {
76
+ this.client.rest.delete(rest_1.Endpoints.applicationEntitlement(this.id, entitlementId));
77
+ }
18
78
  /** https://discord.com/developers/docs/resources/application#edit-current-application */
19
79
  async edit(options) {
20
80
  return new _1.Application(await this.client.rest.patch(rest_1.Endpoints.applicationCurrentUser(), {
@@ -31,25 +91,33 @@ class PartialApplication extends _1.Base {
31
91
  },
32
92
  }), this.client);
33
93
  }
34
- /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
35
- async getGlobalApplicationCommands(options) {
94
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions */
95
+ async editApplicationCommandPermissions(guildId, commandId, options) {
36
96
  return this.client.rest
37
- .get(rest_1.Endpoints.applicationCommands(this.id), {
38
- query: {
39
- with_localizations: options.withLocalizations,
97
+ .put(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId), {
98
+ json: {
99
+ permissions: options.permissions.map((option) => ({
100
+ id: option.id,
101
+ application_id: option.applicationId,
102
+ guild_id: option.guildId,
103
+ permissions: option.permissions.map((permission) => ({
104
+ id: permission.id,
105
+ type: permission.type,
106
+ permission: permission.permission,
107
+ })),
108
+ })),
40
109
  },
41
110
  })
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);
111
+ .then((response) => ({
112
+ id: response.id,
113
+ applicationId: response.application_id,
114
+ guildId: response.guild_id,
115
+ permissions: response.permissions.map((permission) => ({
116
+ id: permission.id,
117
+ type: permission.type,
118
+ permission: permission.permission,
119
+ })),
120
+ }));
53
121
  }
54
122
  /** https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command */
55
123
  async editGlobalApplicationCommand(commandId, options) {
@@ -57,53 +125,78 @@ class PartialApplication extends _1.Base {
57
125
  json: this.client.util.applicationCommandToRaw(options),
58
126
  }), this.client);
59
127
  }
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));
128
+ /** https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command */
129
+ async editGuildApplicationCommand(guildId, commandId, options) {
130
+ return new _1.ApplicationCommand(await this.client.rest.patch(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId), {
131
+ json: this.client.util.applicationCommandToRaw(options),
132
+ }), this.client);
63
133
  }
64
- /** https://discord.com/developers/docs/interactions/application-commands#bulk-overwrite-global-application-commands */
65
- async bulkOverwriteGlobalApplicationCommands(commands) {
134
+ /** https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions */
135
+ async getApplicationCommandPermissions(guildId, commandId) {
66
136
  return this.client.rest
67
- .put(rest_1.Endpoints.applicationCommands(this.id), {
68
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
137
+ .get(rest_1.Endpoints.applicationCommandPermissions(this.id, guildId, commandId))
138
+ .then((response) => response.map((permissions) => ({
139
+ id: permissions.id,
140
+ applicationId: permissions.application_id,
141
+ guildId: permissions.guild_id,
142
+ permissions: permissions.permissions.map((permission) => ({
143
+ id: permission.id,
144
+ type: permission.type,
145
+ permission: permission.permission,
146
+ })),
147
+ })));
148
+ }
149
+ /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
150
+ async getEntitlements(options) {
151
+ return this.client.rest
152
+ .get(rest_1.Endpoints.applicationEntitlements(this.id), {
153
+ query: {
154
+ user_id: options?.userId,
155
+ sku_ids: options?.skuIds,
156
+ before: options?.before,
157
+ after: options?.after,
158
+ limit: options?.limit,
159
+ guild_id: options?.guildId,
160
+ exclude_ended: options?.excludeEnded,
161
+ },
69
162
  })
70
- .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
163
+ .then((response) => response.map((data) => ({
164
+ id: data.id,
165
+ applicationId: data.application_id,
166
+ deleted: data.deleted,
167
+ guildId: data.guild_id,
168
+ skuId: data.sku_id,
169
+ type: data.type,
170
+ userId: data.user_id,
171
+ startsAt: data.starts_at,
172
+ endsAt: data.ends_at,
173
+ })));
71
174
  }
72
- /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
73
- async getGuildApplicationCommands(guildId, options) {
175
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-command */
176
+ async getGlobalApplicationCommand(commandId) {
177
+ return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationCommand(this.id, commandId)), this.client);
178
+ }
179
+ /** https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands */
180
+ async getGlobalApplicationCommands(options) {
74
181
  return this.client.rest
75
- .get(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
182
+ .get(rest_1.Endpoints.applicationCommands(this.id), {
76
183
  query: {
77
- with_localizations: options?.withLocalizations,
184
+ with_localizations: options.withLocalizations,
78
185
  },
79
186
  })
80
187
  .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
81
188
  }
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
189
  /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command */
89
190
  async getGuildApplicationCommand(guildId, commandId) {
90
191
  return new _1.ApplicationCommand(await this.client.rest.get(rest_1.Endpoints.applicationGuildCommand(this.id, guildId, commandId)), this.client);
91
192
  }
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) {
193
+ /** https://discord.com/developers/docs/interactions/application-commands#get-guild-application-commands */
194
+ async getGuildApplicationCommands(guildId, options) {
104
195
  return this.client.rest
105
- .put(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
106
- json: commands.map((command) => this.client.util.applicationCommandToRaw(command)),
196
+ .get(rest_1.Endpoints.applicationGuildCommands(this.id, guildId), {
197
+ query: {
198
+ with_localizations: options?.withLocalizations,
199
+ },
107
200
  })
108
201
  .then((response) => response.map((data) => new _1.ApplicationCommand(data, this.client)));
109
202
  }
@@ -122,49 +215,6 @@ class PartialApplication extends _1.Base {
122
215
  })),
123
216
  })));
124
217
  }
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
218
  /** https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records */
169
219
  async getApplicationRoleConnectionMetadataRecords() {
170
220
  return this.client.rest
@@ -178,19 +228,6 @@ class PartialApplication extends _1.Base {
178
228
  descriptionLocalizations: data.description_localizations,
179
229
  })));
180
230
  }
181
- /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
182
- async updateApplicationRoleConnectionMetadataRecords() {
183
- return this.client.rest
184
- .put(rest_1.Endpoints.applicationRoleConnectionMetadata(this.id))
185
- .then((response) => response.map((data) => ({
186
- type: data.type,
187
- key: data.key,
188
- name: data.name,
189
- nameLocalizations: data.name_localizations,
190
- description: data.description,
191
- descriptionLocalizations: data.description_localizations,
192
- })));
193
- }
194
231
  /** https://discord.com/developers/docs/monetization/skus#list-skus */
195
232
  async getSKUs() {
196
233
  return this.client.rest
@@ -204,62 +241,25 @@ class PartialApplication extends _1.Base {
204
241
  flags: data.flags,
205
242
  })));
206
243
  }
207
- /** https://discord.com/developers/docs/monetization/entitlements#list-entitlements */
208
- async getEntitlements(options) {
244
+ /** https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records */
245
+ async updateApplicationRoleConnectionMetadataRecords() {
209
246
  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
- })
247
+ .put(rest_1.Endpoints.applicationRoleConnectionMetadata(this.id))
221
248
  .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
249
  type: data.type,
228
- userId: data.user_id,
229
- startsAt: data.starts_at,
230
- endsAt: data.ends_at,
250
+ key: data.key,
251
+ name: data.name,
252
+ nameLocalizations: data.name_localizations,
253
+ description: data.description,
254
+ descriptionLocalizations: data.description_localizations,
231
255
  })));
232
256
  }
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
257
  toRaw() {
258
258
  return this.raw;
259
259
  }
260
260
  toJSON() {
261
261
  return {
262
- id: this.id,
262
+ ...super.toJSON(),
263
263
  flags: this.flags,
264
264
  };
265
265
  }
@@ -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,KA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I,CAAC,cAAc;YAClC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC,CACJ,CAAC;IACN,CAAC;IAED,6IAA6I;IAC7I,KAAK,CAAC,8CAA8C;QAGlD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI;aACpB,GAAG,CACF,gBAAS,CAAC,iCAAiC,CAAC,IAAI,CAAC,EAAE,CAAC,CACrD;aACA,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACjB,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACtB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,iBAAiB,EAAE,IAAI,CAAC,kBAAkB;YAC1C,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,wBAAwB,EAAE,IAAI,CAAC,yBAAyB;SACzD,CAAC,CAAC,CACJ,CAAC;IACN,CAAC;IAEQ,KAAK;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAEQ,MAAM;QACb,OAAO;YACL,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;CACF;AAjsBD,gDAisBC"}
@@ -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,I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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"}
@@ -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,oBAAoB,CAAU;IAC9B,qBAAqB,CAAgB;IAErC,YAAY,IAAsB,EAAE,MAAc;QAChD,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC;QACvC,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,qBAAqB,CAAC;QACvD,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,wBAAwB,CAAC;IAC7D,CAAC;IAED,yFAAyF;IACzF,KAAK,CAAC,IAAI,CACR,OAGC,EACD,MAAe;QAEf,OAAO,IAAI,aAAa,CACtB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAC1B,gBAAS,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EACvC;YACE,IAAI,EAAE;gBACJ,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,aAAa,EAAE,OAAO,CAAC,YAAY;aACpC;YACD,MAAM;SACP,CACF,EACD,IAAI,CAAC,MAAM,CACZ,CAAC;IACJ,CAAC;IAED,yFAAyF;IACzF,MAAM,CAAC,MAAe;QACpB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAS,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;YAC/D,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAEQ,KAAK;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAEQ,MAAM;QACb,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;SAClD,CAAC;IACJ,CAAC;CACF;AAlED,sCAkEC"}
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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AAC,MAAM,EAAE;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;SAClD,CAAC;IACJ,CAAC;CACF;AAlED,sCAkEC"}
@@ -18,14 +18,14 @@ export declare class Sticker extends Base {
18
18
  sortValue?: number;
19
19
  constructor(data: RawSticker, client: Client);
20
20
  protected patch(data: RawSticker): void;
21
+ /** https://discord.com/developers/docs/resources/sticker#delete-guild-sticker */
22
+ delete(reason?: string): void;
21
23
  /** https://discord.com/developers/docs/resources/sticker#modify-guild-sticker */
22
24
  edit(options: {
23
25
  name?: string;
24
26
  description?: string | null;
25
27
  tags?: string;
26
28
  }, reason?: string): Promise<Sticker>;
27
- /** https://discord.com/developers/docs/resources/sticker#delete-guild-sticker */
28
- delete(reason?: string): void;
29
29
  toRaw(): RawSticker;
30
30
  toJSON(): JSONSticker;
31
31
  }
@@ -41,6 +41,14 @@ class Sticker extends _1.Base {
41
41
  if (data.sort_value !== undefined)
42
42
  this.sortValue = data.sort_value;
43
43
  }
44
+ /** https://discord.com/developers/docs/resources/sticker#delete-guild-sticker */
45
+ delete(reason) {
46
+ if (!this.guildId)
47
+ throw new Error("[disgroove] Guild ID not found");
48
+ this.client.rest.delete(rest_1.Endpoints.guildSticker(this.guildId, this.id), {
49
+ reason,
50
+ });
51
+ }
44
52
  /** https://discord.com/developers/docs/resources/sticker#modify-guild-sticker */
45
53
  async edit(options, reason) {
46
54
  if (!this.guildId)
@@ -54,20 +62,12 @@ class Sticker extends _1.Base {
54
62
  reason,
55
63
  }), this.client);
56
64
  }
57
- /** https://discord.com/developers/docs/resources/sticker#delete-guild-sticker */
58
- delete(reason) {
59
- if (!this.guildId)
60
- throw new Error("[disgroove] Guild ID not found");
61
- this.client.rest.delete(rest_1.Endpoints.guildSticker(this.guildId, this.id), {
62
- reason,
63
- });
64
- }
65
65
  toRaw() {
66
66
  return this.raw;
67
67
  }
68
68
  toJSON() {
69
69
  return {
70
- id: this.id,
70
+ ...super.toJSON(),
71
71
  packId: this.packId,
72
72
  name: this.name,
73
73
  description: this.description,