From c087963c6cc3c7e1cb941d00069daca7285fe3cf Mon Sep 17 00:00:00 2001 From: pakkographic <41129374+pakkographic@users.noreply.github.com> Date: Sun, 11 Aug 2024 00:31:51 +0200 Subject: [PATCH] Update typings --- lib/routes/Guilds.ts | 2 +- lib/structures/Client.ts | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/Guilds.ts b/lib/routes/Guilds.ts index 0f2b990..011da6c 100644 --- a/lib/routes/Guilds.ts +++ b/lib/routes/Guilds.ts @@ -441,7 +441,7 @@ export class Guilds { async createChannel( guildID: string, name: string, - type: APIChannelCategories | `${APIChannelCategories}`, + type: APIChannelCategories, options?: CreateChannelOptions ): Promise { if (!guildID) throw new Error("guildID is a required parameter."); diff --git a/lib/structures/Client.ts b/lib/structures/Client.ts index 1aad0d6..0a7a766 100644 --- a/lib/structures/Client.ts +++ b/lib/structures/Client.ts @@ -572,7 +572,7 @@ export class Client extends TypedEmitter { async createChannel( guildID: string, name: string, - type: APIChannelCategories | `${APIChannelCategories}`, + type: APIChannelCategories, options?: CreateChannelOptions ): Promise { return this.rest.guilds.createChannel(guildID, name, type, options); diff --git a/package.json b/package.json index 7992cc3..e85064f 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "typescript": "^4.9.4" }, "dependencies": { - "guildedapi-types.ts": "0.3.57", + "guildedapi-types.ts": "0.3.59", "undici": "^6.19.2", "ws": "^8.11.0" },