Skip to content

Commit

Permalink
fix(ArgType): update type for guild*ThreadChannel (#628)
Browse files Browse the repository at this point in the history
* fix(ArgType): remove `type` for guild*ThreadChannel

* chore(ArgsType): use `ChannelType` instead of removing the `type`
  • Loading branch information
yuansheng1549 committed Apr 16, 2023
1 parent 28b5f33 commit 222d50e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/parsers/Args.ts
Expand Up @@ -5,6 +5,7 @@ import { Option, Result } from '@sapphire/result';
import type { Awaitable } from '@sapphire/utilities';
import type {
CategoryChannel,
ChannelType,
DMChannel,
GuildMember,
Message,
Expand Down Expand Up @@ -782,9 +783,9 @@ export interface ArgType {
guildCategoryChannel: CategoryChannel;
guildChannel: GuildBasedChannelTypes;
guildNewsChannel: NewsChannel;
guildNewsThreadChannel: ThreadChannel & { type: 'GUILD_NEWS_THREAD'; parent: NewsChannel | null };
guildPrivateThreadChannel: ThreadChannel & { type: 'GUILD_PRIVATE_THREAD'; parent: TextChannel | null };
guildPublicThreadChannel: ThreadChannel & { type: 'GUILD_PUBLIC_THREAD'; parent: TextChannel | null };
guildNewsThreadChannel: ThreadChannel & { type: ChannelType.AnnouncementThread; parent: NewsChannel | null };
guildPrivateThreadChannel: ThreadChannel & { type: ChannelType.PrivateThread; parent: TextChannel | null };
guildPublicThreadChannel: ThreadChannel & { type: ChannelType.PublicThread; parent: TextChannel | null };
guildStageVoiceChannel: StageChannel;
guildTextChannel: TextChannel;
guildThreadChannel: ThreadChannel;
Expand Down

0 comments on commit 222d50e

Please sign in to comment.