Skip to content

Commit 222d50e

Browse files
authoredApr 16, 2023
fix(ArgType): update type for guild*ThreadChannel (#628)
* fix(ArgType): remove `type` for guild*ThreadChannel * chore(ArgsType): use `ChannelType` instead of removing the `type`
1 parent 28b5f33 commit 222d50e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎src/lib/parsers/Args.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Option, Result } from '@sapphire/result';
55
import type { Awaitable } from '@sapphire/utilities';
66
import type {
77
CategoryChannel,
8+
ChannelType,
89
DMChannel,
910
GuildMember,
1011
Message,
@@ -782,9 +783,9 @@ export interface ArgType {
782783
guildCategoryChannel: CategoryChannel;
783784
guildChannel: GuildBasedChannelTypes;
784785
guildNewsChannel: NewsChannel;
785-
guildNewsThreadChannel: ThreadChannel & { type: 'GUILD_NEWS_THREAD'; parent: NewsChannel | null };
786-
guildPrivateThreadChannel: ThreadChannel & { type: 'GUILD_PRIVATE_THREAD'; parent: TextChannel | null };
787-
guildPublicThreadChannel: ThreadChannel & { type: 'GUILD_PUBLIC_THREAD'; parent: TextChannel | null };
786+
guildNewsThreadChannel: ThreadChannel & { type: ChannelType.AnnouncementThread; parent: NewsChannel | null };
787+
guildPrivateThreadChannel: ThreadChannel & { type: ChannelType.PrivateThread; parent: TextChannel | null };
788+
guildPublicThreadChannel: ThreadChannel & { type: ChannelType.PublicThread; parent: TextChannel | null };
788789
guildStageVoiceChannel: StageChannel;
789790
guildTextChannel: TextChannel;
790791
guildThreadChannel: ThreadChannel;

0 commit comments

Comments
 (0)
Please sign in to comment.