disgroove 1.2.4-dev.3d53761 → 1.2.4-dev.9747d15
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.
|
@@ -25,7 +25,7 @@ class RequestsManager {
|
|
|
25
25
|
}
|
|
26
26
|
let headers = {
|
|
27
27
|
Authorization: `${this.auth} ${this.token}`,
|
|
28
|
-
"User-Agent": `DiscordBot (https://github.com/XenKys/disgroove, 1.2.4-dev.
|
|
28
|
+
"User-Agent": `DiscordBot (https://github.com/XenKys/disgroove, 1.2.4-dev.9747d15)`,
|
|
29
29
|
};
|
|
30
30
|
let body;
|
|
31
31
|
if (method !== _1.RESTMethods.Get) {
|
|
@@ -19,13 +19,13 @@ export declare class Sticker extends Base {
|
|
|
19
19
|
constructor(data: RawSticker, client: Client);
|
|
20
20
|
protected patch(data: RawSticker): void;
|
|
21
21
|
/** https://discord.com/developers/docs/resources/sticker#modify-guild-sticker */
|
|
22
|
-
edit(options: {
|
|
22
|
+
edit(guildId: string, options: {
|
|
23
23
|
name?: string;
|
|
24
24
|
description?: string | null;
|
|
25
25
|
tags?: string;
|
|
26
26
|
}, reason?: string): Promise<Sticker>;
|
|
27
27
|
/** https://discord.com/developers/docs/resources/sticker#delete-guild-sticker */
|
|
28
|
-
delete(reason?: string): void;
|
|
28
|
+
delete(guildId: string, reason?: string): void;
|
|
29
29
|
toRaw(): RawSticker;
|
|
30
30
|
toJSON(): JSONSticker;
|
|
31
31
|
}
|
|
@@ -42,10 +42,8 @@ class Sticker extends _1.Base {
|
|
|
42
42
|
this.sortValue = data.sort_value;
|
|
43
43
|
}
|
|
44
44
|
/** https://discord.com/developers/docs/resources/sticker#modify-guild-sticker */
|
|
45
|
-
async edit(options, reason) {
|
|
46
|
-
|
|
47
|
-
throw new Error("[disgroove] Guild ID not found");
|
|
48
|
-
return new Sticker(await this.client.rest.patch(rest_1.Endpoints.guildSticker(this.guildId, this.id), {
|
|
45
|
+
async edit(guildId, options, reason) {
|
|
46
|
+
return new Sticker(await this.client.rest.patch(rest_1.Endpoints.guildSticker(guildId, this.id), {
|
|
49
47
|
json: {
|
|
50
48
|
name: options.name,
|
|
51
49
|
description: options.description,
|
|
@@ -55,10 +53,8 @@ class Sticker extends _1.Base {
|
|
|
55
53
|
}), this.client);
|
|
56
54
|
}
|
|
57
55
|
/** https://discord.com/developers/docs/resources/sticker#delete-guild-sticker */
|
|
58
|
-
delete(reason) {
|
|
59
|
-
|
|
60
|
-
throw new Error("[disgroove] Guild ID not found");
|
|
61
|
-
this.client.rest.delete(rest_1.Endpoints.guildSticker(this.guildId, this.id), {
|
|
56
|
+
delete(guildId, reason) {
|
|
57
|
+
this.client.rest.delete(rest_1.Endpoints.guildSticker(guildId, this.id), {
|
|
62
58
|
reason,
|
|
63
59
|
});
|
|
64
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sticker.js","sourceRoot":"","sources":["../../src/structures/Sticker.ts"],"names":[],"mappings":";;;AAAA,wBAA+B;AAG/B,kCAAoC;AAGpC,4DAA4D;AAC5D,MAAa,OAAQ,SAAQ,OAAI;IACZ,GAAG,CAAa;IAC5B,MAAM,CAAU;IAChB,IAAI,CAAS;IACb,WAAW,CAAgB;IAC3B,IAAI,CAAS;IACb,KAAK,CAAU;IACf,IAAI,CAAe;IACnB,UAAU,CAAqB;IAC/B,SAAS,CAAW;IACpB,OAAO,CAAU;IACjB,IAAI,CAAQ;IACZ,SAAS,CAAU;IAE1B,YAAY,IAAgB,EAAE,MAAc;QAC1C,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,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAA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