@discordeno/rest 20.0.0 → 21.0.0
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/dist/cjs/manager.cjs +3 -5
- package/dist/esm/manager.js +4 -6
- package/dist/esm/types.js +1 -1
- package/dist/types/manager.d.ts.map +1 -1
- package/dist/types/types.d.ts +6 -6
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/manager.ts"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAA4B,wBAAwB,EAAsB,WAAW,EAAsB,MAAM,YAAY,CAAA;AAEzI,eAAO,MAAM,mBAAmB,KAAK,CAAA;AACrC,eAAO,MAAM,eAAe,4BAA4B,CAAA;AAExD,eAAO,MAAM,uBAAuB,uBAAuB,CAAA;AAC3D,eAAO,MAAM,2BAA2B,0BAA0B,CAAA;AAClE,eAAO,MAAM,6BAA6B,4BAA4B,CAAA;AACtE,eAAO,MAAM,wBAAwB,uBAAuB,CAAA;AAC5D,eAAO,MAAM,wBAAwB,uBAAuB,CAAA;AAC5D,eAAO,MAAM,uBAAuB,sBAAsB,CAAA;AAC1D,eAAO,MAAM,uBAAuB,sBAAsB,CAAA;AAE1D,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,WAAW,CA+mDhF"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1104,7 +1104,7 @@ export interface RestManager {
|
|
|
1104
1104
|
* @remarks
|
|
1105
1105
|
* If editing another user's message:
|
|
1106
1106
|
* - Requires the `MANAGE_MESSAGES` permission.
|
|
1107
|
-
* - Only the {@link EditMessage.flags | flags} property of the
|
|
1107
|
+
* - Only the {@link EditMessage.flags | flags} property of the options object parameter can be edited.
|
|
1108
1108
|
*
|
|
1109
1109
|
* Fires a _Message Update_ gateway event.
|
|
1110
1110
|
*
|
|
@@ -1151,7 +1151,7 @@ export interface RestManager {
|
|
|
1151
1151
|
* @param options - The parameters for the edit of the voice state.
|
|
1152
1152
|
*
|
|
1153
1153
|
* @remarks
|
|
1154
|
-
* The {@link EditOwnVoiceState.channelId | channelId} property of the
|
|
1154
|
+
* The {@link EditOwnVoiceState.channelId | channelId} property of the options object parameter must point to a stage channel, and the bot user must already have joined it.
|
|
1155
1155
|
*
|
|
1156
1156
|
* If attempting to unmute oneself:
|
|
1157
1157
|
* - Requires the `MUTE_MEMBERS` permission.
|
|
@@ -1238,7 +1238,7 @@ export interface RestManager {
|
|
|
1238
1238
|
* @param options - The parameters for the edit of the voice state.
|
|
1239
1239
|
*
|
|
1240
1240
|
* @remarks
|
|
1241
|
-
* The {@link EditOwnVoiceState.channelId | channelId} property of the
|
|
1241
|
+
* The {@link EditOwnVoiceState.channelId | channelId} property of the options object parameter must point to a stage channel, and the user must already have joined it.
|
|
1242
1242
|
*
|
|
1243
1243
|
* Requires the `MUTE_MEMBERS` permission.
|
|
1244
1244
|
*
|
|
@@ -1343,7 +1343,7 @@ export interface RestManager {
|
|
|
1343
1343
|
* @param webhookId - The ID of the webhook to execute.
|
|
1344
1344
|
* @param token - The webhook token, used to execute the webhook.
|
|
1345
1345
|
* @param options - The parameters for the execution of the webhook.
|
|
1346
|
-
* @returns An instance of the created {@link DiscordMessage}, or `undefined` if the {@link ExecuteWebhook.wait | wait} property of the
|
|
1346
|
+
* @returns An instance of the created {@link DiscordMessage}, or `undefined` if the {@link ExecuteWebhook.wait | wait} property of the options object parameter is set to `false`.
|
|
1347
1347
|
*
|
|
1348
1348
|
* @remarks
|
|
1349
1349
|
* If the webhook channel is a forum channel, you must provide a value for either `threadId` or `threadName`.
|
|
@@ -2703,9 +2703,9 @@ export interface RestManager {
|
|
|
2703
2703
|
* @remarks
|
|
2704
2704
|
* Requires the `MANAGE_GUILD` and `KICK_MEMBERS` permissions.
|
|
2705
2705
|
*
|
|
2706
|
-
* ❗ Requests to this endpoint will time out for large guilds. To prevent this from happening, set the {@link BeginGuildPrune.computePruneCount} property of the
|
|
2706
|
+
* ❗ Requests to this endpoint will time out for large guilds. To prevent this from happening, set the {@link BeginGuildPrune.computePruneCount} property of the options object parameter to `false`. This will begin the process of pruning, and immediately return `undefined`, rather than wait for the process to complete before returning the actual count of members that have been kicked.
|
|
2707
2707
|
*
|
|
2708
|
-
* ⚠️ By default, this process will not remove members with a role. To include the members who have a _particular subset of roles_, specify the role(s) in the {@link BeginGuildPrune.includeRoles | includeRoles} property of the
|
|
2708
|
+
* ⚠️ By default, this process will not remove members with a role. To include the members who have a _particular subset of roles_, specify the role(s) in the {@link BeginGuildPrune.includeRoles | includeRoles} property of the options object parameter.
|
|
2709
2709
|
*
|
|
2710
2710
|
* Fires a _Guild Member Remove_ gateway event for every member kicked.
|
|
2711
2711
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discordeno/rest",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"main": "./dist/esm/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
"import": "./dist/esm/index.js",
|
|
@@ -30,26 +30,26 @@
|
|
|
30
30
|
"test:test-type": "tsc --project tests/tsconfig.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@discordeno/types": "
|
|
34
|
-
"@discordeno/utils": "
|
|
33
|
+
"@discordeno/types": "21.0.0",
|
|
34
|
+
"@discordeno/utils": "21.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@biomejs/biome": "^1.9.4",
|
|
38
38
|
"@swc/cli": "^0.5.1",
|
|
39
|
-
"@swc/core": "^1.
|
|
39
|
+
"@swc/core": "^1.10.2",
|
|
40
40
|
"@types/chai": "^5.0.1",
|
|
41
41
|
"@types/chai-as-promised": "^8.0.1",
|
|
42
42
|
"@types/mocha": "^10.0.10",
|
|
43
|
-
"@types/node": "^22.
|
|
43
|
+
"@types/node": "^22.10.2",
|
|
44
44
|
"@types/sinon": "^17.0.3",
|
|
45
45
|
"c8": "^10.1.2",
|
|
46
46
|
"chai": "^5.1.2",
|
|
47
|
-
"chai-as-promised": "^8.0.
|
|
47
|
+
"chai-as-promised": "^8.0.1",
|
|
48
48
|
"dotenv": "^16.4.5",
|
|
49
49
|
"mocha": "^10.8.2",
|
|
50
50
|
"sinon": "^19.0.2",
|
|
51
51
|
"ts-node": "^10.9.2",
|
|
52
52
|
"tsconfig": "*",
|
|
53
|
-
"typescript": "^5.
|
|
53
|
+
"typescript": "^5.7.2"
|
|
54
54
|
}
|
|
55
55
|
}
|