disgroove 1.1.3-dev.b0b378c → 1.1.3-dev.c6ccefb
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.
- package/README.md +13 -22
- package/dist/Client.d.ts +3 -13
- package/dist/Client.js +8 -62
- package/dist/Client.js.map +1 -1
- package/dist/client/Client.d.ts +225 -0
- package/dist/client/Client.js +741 -0
- package/dist/client/Client.js.map +1 -0
- package/dist/client/ClientApplication.d.ts +261 -0
- package/dist/client/ClientApplication.js +187 -0
- package/dist/client/ClientApplication.js.map +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +19 -0
- package/dist/client/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/rest/Endpoints.d.ts +2 -4
- package/dist/rest/Endpoints.js +6 -8
- package/dist/rest/Endpoints.js.map +1 -1
- package/dist/rest/RequestsManager.js +8 -2
- package/dist/rest/RequestsManager.js.map +1 -1
- package/dist/structures/Application.d.ts +2 -3
- package/dist/structures/Application.js +1 -2
- package/dist/structures/Application.js.map +1 -1
- package/dist/structures/ApplicationCommand.d.ts +1 -1
- package/dist/structures/AutoModerationRule.d.ts +5 -4
- package/dist/structures/AutoModerationRule.js +8 -1
- package/dist/structures/AutoModerationRule.js.map +1 -1
- package/dist/structures/Base.d.ts +1 -1
- package/dist/structures/Channel.d.ts +4 -8
- package/dist/structures/Channel.js +6 -14
- package/dist/structures/Channel.js.map +1 -1
- package/dist/structures/Emoji.d.ts +1 -1
- package/dist/structures/Guild.d.ts +1 -1
- package/dist/structures/GuildMember.d.ts +1 -1
- package/dist/structures/GuildScheduledEvent.d.ts +1 -1
- package/dist/structures/GuildTemplate.d.ts +1 -1
- package/dist/structures/Integration.d.ts +1 -1
- package/dist/structures/Interaction.d.ts +1 -1
- package/dist/structures/Invite.d.ts +1 -1
- package/dist/structures/Message.d.ts +3 -7
- package/dist/structures/Message.js +5 -13
- package/dist/structures/Message.js.map +1 -1
- package/dist/structures/Role.d.ts +1 -1
- package/dist/structures/StageInstance.d.ts +1 -1
- package/dist/structures/Sticker.d.ts +1 -1
- package/dist/structures/Team.d.ts +1 -1
- package/dist/structures/User.d.ts +6 -6
- package/dist/structures/User.js +5 -5
- package/dist/structures/User.js.map +1 -1
- package/dist/structures/VoiceState.d.ts +1 -1
- package/dist/structures/Webhook.d.ts +1 -1
- package/dist/types/auto-moderation.d.ts +5 -5
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Base, User } from ".";
|
|
2
|
-
import type { Client } from "../Client";
|
|
2
|
+
import type { Client } from "../client/Client";
|
|
3
3
|
import type { StickerFormatTypes, StickerTypes } from "../utils";
|
|
4
4
|
import type { JSONSticker, RawSticker } from "../types";
|
|
5
5
|
export declare class Sticker extends Base {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Base, Channel, GuildMember } from ".";
|
|
2
|
-
import type { Client } from "../Client";
|
|
2
|
+
import type { Client } from "../client/Client";
|
|
3
3
|
import type { JSONApplicationRoleConnection, JSONConnection, JSONUser, RawUser } from "../types";
|
|
4
4
|
import type { ApplicationRoleConnectionMetadataType, Locale, UserFlags } from "../utils";
|
|
5
5
|
export declare class User extends Base {
|
|
@@ -22,12 +22,12 @@ export declare class User extends Base {
|
|
|
22
22
|
constructor(data: RawUser, client: Client);
|
|
23
23
|
protected patch(data: RawUser): void;
|
|
24
24
|
/** https://discord.com/developers/docs/resources/user#modify-current-user */
|
|
25
|
-
|
|
25
|
+
modify(options: {
|
|
26
26
|
username?: string;
|
|
27
27
|
avatar?: string | null;
|
|
28
28
|
}): Promise<User>;
|
|
29
29
|
/** https://discord.com/developers/docs/resources/user#get-current-user-guild-member */
|
|
30
|
-
|
|
30
|
+
getGuildMember(guildId: string): Promise<GuildMember>;
|
|
31
31
|
/** https://discord.com/developers/docs/resources/user#leave-guild */
|
|
32
32
|
leaveGuild(guildId: string): void;
|
|
33
33
|
/** https://discord.com/developers/docs/resources/user#create-dm */
|
|
@@ -40,11 +40,11 @@ export declare class User extends Base {
|
|
|
40
40
|
nicks: Array<string>;
|
|
41
41
|
}): Promise<Channel>;
|
|
42
42
|
/** https://discord.com/developers/docs/resources/user#get-user-connections */
|
|
43
|
-
|
|
43
|
+
getConnections(): Promise<Array<JSONConnection>>;
|
|
44
44
|
/** https://discord.com/developers/docs/resources/user#get-user-application-role-connection */
|
|
45
|
-
|
|
45
|
+
getApplicationRoleConnection(): Promise<JSONApplicationRoleConnection>;
|
|
46
46
|
/** https://discord.com/developers/docs/resources/user#update-user-application-role-connection */
|
|
47
|
-
|
|
47
|
+
updateApplicationRoleConnection(options: {
|
|
48
48
|
platformName?: string;
|
|
49
49
|
platformUsername?: string;
|
|
50
50
|
metadata?: {
|
package/dist/structures/User.js
CHANGED
|
@@ -54,7 +54,7 @@ class User extends _1.Base {
|
|
|
54
54
|
this.publicFlags = data.public_flags;
|
|
55
55
|
}
|
|
56
56
|
/** https://discord.com/developers/docs/resources/user#modify-current-user */
|
|
57
|
-
async
|
|
57
|
+
async modify(options) {
|
|
58
58
|
return new User(await this.client.rest.patch(rest_1.Endpoints.user(), {
|
|
59
59
|
json: {
|
|
60
60
|
username: options.username,
|
|
@@ -63,7 +63,7 @@ class User extends _1.Base {
|
|
|
63
63
|
}), this.client);
|
|
64
64
|
}
|
|
65
65
|
/** https://discord.com/developers/docs/resources/user#get-current-user-guild-member */
|
|
66
|
-
async
|
|
66
|
+
async getGuildMember(guildId) {
|
|
67
67
|
return new _1.GuildMember(await this.client.rest.get(rest_1.Endpoints.guildMember(guildId)), this.client);
|
|
68
68
|
}
|
|
69
69
|
/** https://discord.com/developers/docs/resources/user#leave-guild */
|
|
@@ -88,7 +88,7 @@ class User extends _1.Base {
|
|
|
88
88
|
}), this.client);
|
|
89
89
|
}
|
|
90
90
|
/** https://discord.com/developers/docs/resources/user#get-user-connections */
|
|
91
|
-
async
|
|
91
|
+
async getConnections() {
|
|
92
92
|
return this.client.rest
|
|
93
93
|
.get(rest_1.Endpoints.userConnections())
|
|
94
94
|
.then((response) => response.map((data) => ({
|
|
@@ -105,7 +105,7 @@ class User extends _1.Base {
|
|
|
105
105
|
})));
|
|
106
106
|
}
|
|
107
107
|
/** https://discord.com/developers/docs/resources/user#get-user-application-role-connection */
|
|
108
|
-
async
|
|
108
|
+
async getApplicationRoleConnection() {
|
|
109
109
|
return this.client.rest
|
|
110
110
|
.get(rest_1.Endpoints.userApplicationRoleConnection((await this.client.getApplication()).id))
|
|
111
111
|
.then((response) => ({
|
|
@@ -122,7 +122,7 @@ class User extends _1.Base {
|
|
|
122
122
|
}));
|
|
123
123
|
}
|
|
124
124
|
/** https://discord.com/developers/docs/resources/user#update-user-application-role-connection */
|
|
125
|
-
async
|
|
125
|
+
async updateApplicationRoleConnection(options) {
|
|
126
126
|
return this.client.rest
|
|
127
127
|
.put(rest_1.Endpoints.userApplicationRoleConnection((await this.client.getApplication()).id), {
|
|
128
128
|
json: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/structures/User.ts"],"names":[],"mappings":";;;AAAA,wBAA4D;AAE5D,kCAAoC;AAiBpC,MAAa,IAAK,SAAQ,OAAI;IACT,GAAG,CAAU;IACzB,QAAQ,CAAS;IACjB,aAAa,CAAS;IACtB,MAAM,CAAS;IACf,UAAU,CAAgB;IAC1B,GAAG,CAAW;IACd,MAAM,CAAW;IACjB,UAAU,CAAW;IACrB,MAAM,CAAU;IAChB,WAAW,CAAU;IACrB,MAAM,CAAU;IAChB,QAAQ,CAAW;IACnB,KAAK,CAAU;IACf,KAAK,CAAa;IAClB,WAAW,CAAU;IACrB,WAAW,CAAa;IAE/B,YAAY,IAAa,EAAE,MAAc;QACvC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QA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I,CAAC,MAAM;YACnB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC;IACJ,CAAC;CACF;AAnND,oBAmNC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Base, Channel, Guild, Message, User } from ".";
|
|
2
|
-
import type { Client } from "../Client";
|
|
2
|
+
import type { Client } from "../client/Client";
|
|
3
3
|
import { type File } from "../rest";
|
|
4
4
|
import type { JSONAllowedMentions, JSONAttachment, JSONEmbed, JSONEmoji, JSONSelectOption, JSONWebhook, RawWebhook } from "../types";
|
|
5
5
|
import { type ChannelTypes, type ComponentTypes, type MessageFlags, type WebhookTypes } from "../utils";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { KeywordPresetTypes, ActionTypes } from "../utils";
|
|
1
|
+
import type { KeywordPresetTypes, ActionTypes, EventTypes } from "../utils";
|
|
2
2
|
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-auto-moderation-rule-structure */
|
|
3
3
|
export interface RawAutoModerationRule {
|
|
4
4
|
id: string;
|
|
5
5
|
guild_id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
creator_id: string;
|
|
8
|
-
event_type:
|
|
8
|
+
event_type: EventTypes;
|
|
9
9
|
trigger_type: number;
|
|
10
|
-
trigger_metadata:
|
|
10
|
+
trigger_metadata: RawTriggerMetadata;
|
|
11
11
|
actions: Array<RawAutoModerationAction>;
|
|
12
12
|
enabled: boolean;
|
|
13
13
|
exempt_roles: Array<string>;
|
|
@@ -38,9 +38,9 @@ export interface JSONAutoModerationRule {
|
|
|
38
38
|
guildId: string;
|
|
39
39
|
name: string;
|
|
40
40
|
creatorId: string;
|
|
41
|
-
eventType:
|
|
41
|
+
eventType: EventTypes;
|
|
42
42
|
triggerType: number;
|
|
43
|
-
triggerMetadata:
|
|
43
|
+
triggerMetadata: JSONTriggerMetadata;
|
|
44
44
|
actions: Array<JSONAutoModerationAction>;
|
|
45
45
|
enabled: boolean;
|
|
46
46
|
exemptRoles: Array<string>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "disgroove",
|
|
3
|
-
"version": "1.1.3-dev.
|
|
3
|
+
"version": "1.1.3-dev.c6ccefb",
|
|
4
4
|
"description": "An NPM package to interact with the Discord API",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/XenKys/disgroove.git"
|