@discordjs/core 2.0.0-dev.1724155493-bf83db948 → 2.0.0-dev.1724285451-bba0e72e2
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 +9 -0
- package/dist/http-only.d.ts +9 -0
- package/dist/http-only.js +12 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +12 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/http-only.mjs
CHANGED
|
@@ -1039,6 +1039,17 @@ var GuildsAPI = class {
|
|
|
1039
1039
|
async getRoles(guildId, { signal } = {}) {
|
|
1040
1040
|
return this.rest.get(Routes5.guildRoles(guildId), { signal });
|
|
1041
1041
|
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Get a role in a guild
|
|
1044
|
+
*
|
|
1045
|
+
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-role}
|
|
1046
|
+
* @param guildId - The id of the guild to fetch the role from
|
|
1047
|
+
* @param roleId - The id of the role to fetch
|
|
1048
|
+
* @param options - The options for fetching the guild role
|
|
1049
|
+
*/
|
|
1050
|
+
async getRole(guildId, roleId, { signal } = {}) {
|
|
1051
|
+
return this.rest.get(Routes5.guildRole(guildId, roleId), { signal });
|
|
1052
|
+
}
|
|
1042
1053
|
/**
|
|
1043
1054
|
* Creates a guild role
|
|
1044
1055
|
*
|
|
@@ -2854,7 +2865,7 @@ __name(withFiles, "withFiles");
|
|
|
2854
2865
|
|
|
2855
2866
|
// src/http-only/index.ts
|
|
2856
2867
|
export * from "discord-api-types/v10";
|
|
2857
|
-
var version = "2.0.0-dev.
|
|
2868
|
+
var version = "2.0.0-dev.1724285451-bba0e72e2";
|
|
2858
2869
|
export {
|
|
2859
2870
|
API,
|
|
2860
2871
|
ApplicationCommandsAPI,
|