Skip to content

Commit

Permalink
feat(Routes): get method on role endpoint (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
TAEMBO authored Aug 14, 2024
1 parent a59f9f0 commit ea1a6c3
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deno/rest/v10/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,11 @@ export interface RESTPatchAPIGuildRoleJSONBody {
mentionable?: boolean | null | undefined;
}

/**
* https://discord.com/developers/docs/resources/guild#get-guild-role
*/
export type RESTGetAPIGuildRoleResult = APIRole;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-role
*/
Expand Down
1 change: 1 addition & 0 deletions deno/rest/v10/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ export const Routes = {

/**
* Route for:
* - GET `/guilds/{guild.id}/roles/{role.id}`
* - PATCH `/guilds/{guild.id}/roles/{role.id}`
* - DELETE `/guilds/{guild.id}/roles/{role.id}`
*/
Expand Down
5 changes: 5 additions & 0 deletions deno/rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,11 @@ export interface RESTPatchAPIGuildRoleJSONBody {
mentionable?: boolean | null | undefined;
}

/**
* https://discord.com/developers/docs/resources/guild#get-guild-role
*/
export type RESTGetAPIGuildRoleResult = APIRole;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-role
*/
Expand Down
1 change: 1 addition & 0 deletions deno/rest/v9/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ export const Routes = {

/**
* Route for:
* - GET `/guilds/{guild.id}/roles/{role.id}`
* - PATCH `/guilds/{guild.id}/roles/{role.id}`
* - DELETE `/guilds/{guild.id}/roles/{role.id}`
*/
Expand Down
5 changes: 5 additions & 0 deletions rest/v10/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,11 @@ export interface RESTPatchAPIGuildRoleJSONBody {
mentionable?: boolean | null | undefined;
}

/**
* https://discord.com/developers/docs/resources/guild#get-guild-role
*/
export type RESTGetAPIGuildRoleResult = APIRole;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-role
*/
Expand Down
1 change: 1 addition & 0 deletions rest/v10/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ export const Routes = {

/**
* Route for:
* - GET `/guilds/{guild.id}/roles/{role.id}`
* - PATCH `/guilds/{guild.id}/roles/{role.id}`
* - DELETE `/guilds/{guild.id}/roles/{role.id}`
*/
Expand Down
5 changes: 5 additions & 0 deletions rest/v9/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,11 @@ export interface RESTPatchAPIGuildRoleJSONBody {
mentionable?: boolean | null | undefined;
}

/**
* https://discord.com/developers/docs/resources/guild#get-guild-role
*/
export type RESTGetAPIGuildRoleResult = APIRole;

/**
* https://discord.com/developers/docs/resources/guild#modify-guild-role
*/
Expand Down
1 change: 1 addition & 0 deletions rest/v9/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ export const Routes = {

/**
* Route for:
* - GET `/guilds/{guild.id}/roles/{role.id}`
* - PATCH `/guilds/{guild.id}/roles/{role.id}`
* - DELETE `/guilds/{guild.id}/roles/{role.id}`
*/
Expand Down

0 comments on commit ea1a6c3

Please sign in to comment.