Skip to content

Commit

Permalink
createChannel type propety allowing string value
Browse files Browse the repository at this point in the history
  • Loading branch information
pakkographic committed Aug 10, 2024
1 parent 36f761f commit a53d302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structures/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ export class Client extends TypedEmitter<ClientEvents> {
async createChannel<T extends AnyChannel = AnyChannel>(
guildID: string,
name: string,
type: APIChannelCategories,
type: APIChannelCategories | `${APIChannelCategories}`,
options?: CreateChannelOptions
): Promise<T> {
return this.rest.guilds.createChannel<T>(guildID, name, type, options);
Expand Down

0 comments on commit a53d302

Please sign in to comment.