@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/index.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
  *
@@ -3001,7 +3012,7 @@ __name(withFiles, "withFiles");
3001
3012
 
3002
3013
  // src/index.ts
3003
3014
  export * from "discord-api-types/v10";
3004
- var version = "2.0.0-dev.1724155493-bf83db948";
3015
+ var version = "2.0.0-dev.1724285451-bba0e72e2";
3005
3016
  export {
3006
3017
  API,
3007
3018
  ApplicationCommandsAPI,