Skip to content

Commit

Permalink
REST#Guilds readCategory -> getCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
pakkographic committed Aug 29, 2023
1 parent 09a3405 commit d53bc18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/routes/Guilds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ export class Guilds {
* @param guildID ID of the guild to create a category in.
* @param categoryID ID of the category you want to read.
*/
async readCategory(guildID: string, categoryID: number): Promise<GuildCategory> {
async getCategory(guildID: string, categoryID: number): Promise<GuildCategory> {
return this.#manager.authRequest<GETReadCategoryResponse>({
method: "GET",
path: endpoints.GUILD_CATEGORY(guildID, categoryID)
Expand Down
2 changes: 1 addition & 1 deletion lib/structures/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ export class Client extends TypedEmitter<ClientEvents> {
* @param categoryID ID of the category you want to read.
*/
async getGuildCategory(guildID: string, categoryID: number): Promise<GuildCategory> {
return this.rest.guilds.readCategory(guildID, categoryID);
return this.rest.guilds.getCategory(guildID, categoryID);
}
/**
* Update a guild category.
Expand Down
2 changes: 1 addition & 1 deletion lib/structures/Guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class Guild extends Base<string> {
* @param categoryID ID of the category you want to read.
*/
async getCategory(categoryID: number): Promise<GuildCategory> {
return this.client.rest.guilds.readCategory(this.id as string, categoryID);
return this.client.rest.guilds.getCategory(this.id as string, categoryID);
}
/**
* Update a guild category.
Expand Down

0 comments on commit d53bc18

Please sign in to comment.