diff --git a/lib/routes/Guilds.ts b/lib/routes/Guilds.ts index 53df649..f3b6d42 100644 --- a/lib/routes/Guilds.ts +++ b/lib/routes/Guilds.ts @@ -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 { + async getCategory(guildID: string, categoryID: number): Promise { return this.#manager.authRequest({ method: "GET", path: endpoints.GUILD_CATEGORY(guildID, categoryID) diff --git a/lib/structures/Client.ts b/lib/structures/Client.ts index 59d7022..9c99b01 100644 --- a/lib/structures/Client.ts +++ b/lib/structures/Client.ts @@ -1289,7 +1289,7 @@ export class Client extends TypedEmitter { * @param categoryID ID of the category you want to read. */ async getGuildCategory(guildID: string, categoryID: number): Promise { - return this.rest.guilds.readCategory(guildID, categoryID); + return this.rest.guilds.getCategory(guildID, categoryID); } /** * Update a guild category. diff --git a/lib/structures/Guild.ts b/lib/structures/Guild.ts index d332b60..28501e2 100644 --- a/lib/structures/Guild.ts +++ b/lib/structures/Guild.ts @@ -217,7 +217,7 @@ export class Guild extends Base { * @param categoryID ID of the category you want to read. */ async getCategory(categoryID: number): Promise { - 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.