disgroove 2.2.5-dev.8ca7d6a → 2.2.5-dev.8d93f59
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 +1 -10
- package/dist/lib/Client.d.ts +2 -0
- package/dist/lib/Client.js +2 -0
- package/dist/lib/types/message.d.ts +8 -8
- package/dist/package.json +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
@@ -7,14 +7,6 @@ A module to interface with Discord
|
|
7
7
|
- Flexible
|
8
8
|
- 100% coverage of the [Official Discord API Documentation](https://discord.com/developers/docs/intro)
|
9
9
|
|
10
|
-
## Installation
|
11
|
-
|
12
|
-
[**Node.js v18**](https://nodejs.org) or newer required
|
13
|
-
|
14
|
-
```
|
15
|
-
npm install disgroove
|
16
|
-
```
|
17
|
-
|
18
10
|
## Example
|
19
11
|
|
20
12
|
```js
|
@@ -53,5 +45,4 @@ client.on("interactionCreate", async (interaction) => {
|
|
53
45
|
client.connect();
|
54
46
|
```
|
55
47
|
|
56
|
-
More examples on the [GitHub repository](https://github.com/
|
57
|
-
For support and more join the [Discord server](https://discord.gg/kunfRQgRyD)
|
48
|
+
More examples on the [GitHub repository](https://github.com/sergiogotuzzo/disgroove/tree/main/examples)
|
package/dist/lib/Client.d.ts
CHANGED
@@ -717,6 +717,7 @@ export declare class Client extends EventEmitter {
|
|
717
717
|
attachments?: Array<Partial<Attachment>> | null;
|
718
718
|
poll?: PollCreateParams | null;
|
719
719
|
threadID?: snowflake;
|
720
|
+
withComponents?: boolean;
|
720
721
|
}): Promise<Message>;
|
721
722
|
/** https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token */
|
722
723
|
editWebhookWithToken(webhookID: snowflake, webhookToken: string, options: {
|
@@ -742,6 +743,7 @@ export declare class Client extends EventEmitter {
|
|
742
743
|
poll?: PollCreateParams;
|
743
744
|
wait?: boolean;
|
744
745
|
threadID?: snowflake;
|
746
|
+
withComponents?: boolean;
|
745
747
|
}): Promise<Message | null>;
|
746
748
|
/**
|
747
749
|
* https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook
|
package/dist/lib/Client.js
CHANGED
@@ -1531,6 +1531,7 @@ class Client extends node_events_1.default {
|
|
1531
1531
|
files: options.files,
|
1532
1532
|
query: {
|
1533
1533
|
thread_id: options.threadID,
|
1534
|
+
with_components: options.withComponents,
|
1534
1535
|
},
|
1535
1536
|
});
|
1536
1537
|
return transformers_1.Messages.messageFromRaw(response);
|
@@ -1593,6 +1594,7 @@ class Client extends node_events_1.default {
|
|
1593
1594
|
query: {
|
1594
1595
|
wait: options.wait,
|
1595
1596
|
thread_id: options.threadID,
|
1597
|
+
with_components: options.withComponents,
|
1596
1598
|
},
|
1597
1599
|
});
|
1598
1600
|
return response !== null ? transformers_1.Messages.messageFromRaw(response) : response;
|
@@ -191,10 +191,10 @@ export interface RawChannelMention {
|
|
191
191
|
}
|
192
192
|
/** https://discord.com/developers/docs/resources/message#allowed-mentions-object-allowed-mentions-structure */
|
193
193
|
export interface RawAllowedMentions {
|
194
|
-
parse
|
195
|
-
roles
|
196
|
-
users
|
197
|
-
replied_user
|
194
|
+
parse?: Array<AllowedMentionTypes>;
|
195
|
+
roles?: Array<snowflake>;
|
196
|
+
users?: Array<snowflake>;
|
197
|
+
replied_user?: boolean;
|
198
198
|
}
|
199
199
|
export interface Message {
|
200
200
|
id: snowflake;
|
@@ -359,8 +359,8 @@ export interface ChannelMention {
|
|
359
359
|
name: string;
|
360
360
|
}
|
361
361
|
export interface AllowedMentions {
|
362
|
-
parse
|
363
|
-
roles
|
364
|
-
users
|
365
|
-
repliedUser
|
362
|
+
parse?: Array<AllowedMentionTypes>;
|
363
|
+
roles?: Array<snowflake>;
|
364
|
+
users?: Array<snowflake>;
|
365
|
+
repliedUser?: boolean;
|
366
366
|
}
|
package/dist/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "disgroove",
|
3
|
-
"version": "2.2.5-dev.
|
3
|
+
"version": "2.2.5-dev.8d93f59",
|
4
4
|
"description": "A module to interface with Discord",
|
5
5
|
"main": "./dist/lib/index.js",
|
6
6
|
"types": "./dist/lib/index.d.ts",
|
7
7
|
"repository": {
|
8
8
|
"type": "git",
|
9
|
-
"url": "git+https://github.com/
|
9
|
+
"url": "git+https://github.com/sergiogotuzzo/disgroove.git"
|
10
10
|
},
|
11
11
|
"keywords": [
|
12
12
|
"api",
|
@@ -21,9 +21,9 @@
|
|
21
21
|
"author": "XenKys",
|
22
22
|
"license": "MIT",
|
23
23
|
"bugs": {
|
24
|
-
"url": "https://github.com/
|
24
|
+
"url": "https://github.com/sergiogotuzzo/disgroove/issues"
|
25
25
|
},
|
26
|
-
"homepage": "https://github.com/
|
26
|
+
"homepage": "https://github.com/sergiogotuzzo/disgroove#readme",
|
27
27
|
"devDependencies": {
|
28
28
|
"@types/node": "^22.5.3",
|
29
29
|
"@types/ws": "^8.5.12",
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "disgroove",
|
3
|
-
"version": "2.2.5-dev.
|
3
|
+
"version": "2.2.5-dev.8d93f59",
|
4
4
|
"description": "A module to interface with Discord",
|
5
5
|
"main": "./dist/lib/index.js",
|
6
6
|
"types": "./dist/lib/index.d.ts",
|
7
7
|
"repository": {
|
8
8
|
"type": "git",
|
9
|
-
"url": "git+https://github.com/
|
9
|
+
"url": "git+https://github.com/sergiogotuzzo/disgroove.git"
|
10
10
|
},
|
11
11
|
"keywords": [
|
12
12
|
"api",
|
@@ -21,9 +21,9 @@
|
|
21
21
|
"author": "XenKys",
|
22
22
|
"license": "MIT",
|
23
23
|
"bugs": {
|
24
|
-
"url": "https://github.com/
|
24
|
+
"url": "https://github.com/sergiogotuzzo/disgroove/issues"
|
25
25
|
},
|
26
|
-
"homepage": "https://github.com/
|
26
|
+
"homepage": "https://github.com/sergiogotuzzo/disgroove#readme",
|
27
27
|
"devDependencies": {
|
28
28
|
"@types/node": "^22.5.3",
|
29
29
|
"@types/ws": "^8.5.12",
|