@duque.edits/sdk 0.1.8 → 0.1.9
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.
|
@@ -152,7 +152,7 @@ class GuildUser {
|
|
|
152
152
|
data.type = "add";
|
|
153
153
|
const route = Routes_1.Routes.guilds.users.get(this.manager.guild.id, this.id);
|
|
154
154
|
let payload = {};
|
|
155
|
-
const numericFields = ["
|
|
155
|
+
const numericFields = ["wins", "points", "losses", "mvps", "games", "creations"];
|
|
156
156
|
const arrayFields = ["items", "original_channels"];
|
|
157
157
|
if (data?.type === "add" || data?.type === "remove") {
|
|
158
158
|
for (const key in data) {
|
|
@@ -4,6 +4,7 @@ exports.GuildMatchMessagesType = exports.GuildMatchChannelsType = void 0;
|
|
|
4
4
|
var GuildMatchChannelsType;
|
|
5
5
|
(function (GuildMatchChannelsType) {
|
|
6
6
|
GuildMatchChannelsType["CreationChannel"] = "creation_channel";
|
|
7
|
+
GuildMatchChannelsType["TextChannel"] = "text_channel";
|
|
7
8
|
})(GuildMatchChannelsType || (exports.GuildMatchChannelsType = GuildMatchChannelsType = {}));
|
|
8
9
|
var GuildMatchMessagesType;
|
|
9
10
|
(function (GuildMatchMessagesType) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duque.edits/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"main": "dist/index",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"typings": "./types/index.d.ts",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"dist",
|
|
18
18
|
"types"
|
|
19
19
|
],
|
|
20
|
-
|
|
21
20
|
"scripts": {
|
|
22
21
|
"test": "ts-node --transpile-only tests/index.ts",
|
|
23
22
|
"match": "ts-node --transpile-only tests/match.ts",
|
|
@@ -47,7 +47,8 @@ export interface APIGuildMatch {
|
|
|
47
47
|
mvps: [];
|
|
48
48
|
}
|
|
49
49
|
export declare enum GuildMatchChannelsType {
|
|
50
|
-
CreationChannel = "creation_channel"
|
|
50
|
+
CreationChannel = "creation_channel",
|
|
51
|
+
TextChannel = "text_channel"
|
|
51
52
|
}
|
|
52
53
|
export declare enum GuildMatchMessagesType {
|
|
53
54
|
CreationMessage = "creation_message"
|