@discordjs/core 3.0.0-dev.1759795315-88778df0e → 3.0.0-dev.1759924903-0c2975e3f
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/http-only.d.mts +29 -1
- package/dist/http-only.d.ts +29 -1
- package/dist/http-only.js +46 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +46 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +29 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.js +46 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +46 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -858,6 +858,36 @@ var ChannelsAPI = class {
|
|
|
858
858
|
signal
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
+
/**
|
|
862
|
+
* Adds a recipient to a group DM channel
|
|
863
|
+
*
|
|
864
|
+
* @see {@link https://discord.com/developers/docs/resources/channel#group-dm-add-recipient}
|
|
865
|
+
* @param channelId - The id of the channel to add the recipient to
|
|
866
|
+
* @param userId - The id of the user to add as a recipient
|
|
867
|
+
* @param body - The data for adding the recipient
|
|
868
|
+
* @param options - The options for adding the recipient
|
|
869
|
+
*/
|
|
870
|
+
async addGroupDMRecipient(channelId, userId, body, { auth, signal } = {}) {
|
|
871
|
+
await this.rest.put(Routes3.channelRecipient(channelId, userId), {
|
|
872
|
+
auth,
|
|
873
|
+
body,
|
|
874
|
+
signal
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Removes a recipient from a group DM channel
|
|
879
|
+
*
|
|
880
|
+
* @see {@link https://discord.com/developers/docs/resources/channel#group-dm-remove-recipient}
|
|
881
|
+
* @param channelId - The id of the channel to remove the recipient from
|
|
882
|
+
* @param userId - The id of the user to remove as a recipient
|
|
883
|
+
* @param options - The options for removing the recipient
|
|
884
|
+
*/
|
|
885
|
+
async removeGroupDMRecipient(channelId, userId, { auth, signal } = {}) {
|
|
886
|
+
await this.rest.delete(Routes3.channelRecipient(channelId, userId), {
|
|
887
|
+
auth,
|
|
888
|
+
signal
|
|
889
|
+
});
|
|
890
|
+
}
|
|
861
891
|
};
|
|
862
892
|
|
|
863
893
|
// src/api/gateway.ts
|
|
@@ -1923,6 +1953,21 @@ var GuildsAPI = class {
|
|
|
1923
1953
|
async deleteSoundboardSound(guildId, soundId, { auth, reason, signal } = {}) {
|
|
1924
1954
|
await this.rest.delete(Routes5.guildSoundboardSound(guildId, soundId), { auth, reason, signal });
|
|
1925
1955
|
}
|
|
1956
|
+
/**
|
|
1957
|
+
* Modifies incident actions for a guild.
|
|
1958
|
+
*
|
|
1959
|
+
* @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-incident-actions}
|
|
1960
|
+
* @param guildId - The id of the guild
|
|
1961
|
+
* @param body - The data for modifying guild incident actions
|
|
1962
|
+
* @param options - The options for modifying guild incident actions
|
|
1963
|
+
*/
|
|
1964
|
+
async editIncidentActions(guildId, body, { auth, signal } = {}) {
|
|
1965
|
+
return this.rest.put(Routes5.guildIncidentActions(guildId), {
|
|
1966
|
+
auth,
|
|
1967
|
+
body,
|
|
1968
|
+
signal
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1926
1971
|
};
|
|
1927
1972
|
|
|
1928
1973
|
// src/api/interactions.ts
|
|
@@ -3341,7 +3386,7 @@ __name(withFiles, "withFiles");
|
|
|
3341
3386
|
|
|
3342
3387
|
// src/index.ts
|
|
3343
3388
|
export * from "discord-api-types/v10";
|
|
3344
|
-
var version = "3.0.0-dev.
|
|
3389
|
+
var version = "3.0.0-dev.1759924903-0c2975e3f";
|
|
3345
3390
|
export {
|
|
3346
3391
|
API,
|
|
3347
3392
|
ApplicationCommandsAPI,
|