Skip to content

Commit c3e06f4

Browse files
committed
Add threads to news channels
1 parent 5820317 commit c3e06f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/Utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ export function isMessage(msg: SendMessage | CommandSource | undefined): msg is
588588
export type NewsableChannel = NewsChannel | TextChannel
589589
export function isNewsable(channel: Channel | GuildChannel | TextBasedChannel | null): channel is NewsableChannel {
590590
if (!channel) return false
591-
return channel.type == ChannelType.GuildText || channel.type == ChannelType.GuildAnnouncement || channel.type == ChannelType.AnnouncementThread
591+
return channel.type == ChannelType.GuildText || channel.type == ChannelType.GuildAnnouncement || channel.type == ChannelType.AnnouncementThread || channel.type == ChannelType.PublicThread || channel.type == ChannelType.PrivateThread
592592
}
593593

594594
export function getUserID(source: CommandSource): string {

0 commit comments

Comments
 (0)