File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ export function isMessage(msg: SendMessage | CommandSource | undefined): msg is
588588export type NewsableChannel = NewsChannel | TextChannel
589589export 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
594594export function getUserID ( source : CommandSource ) : string {
You can’t perform that action at this time.
0 commit comments