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" },