File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,13 @@ impl GuildChannel {
202202 pub fn is_text_based ( & self ) -> bool {
203203 matches ! (
204204 self . kind,
205- ChannelType :: Text | ChannelType :: News | ChannelType :: Voice | ChannelType :: Stage
205+ ChannelType :: Text
206+ | ChannelType :: News
207+ | ChannelType :: Voice
208+ | ChannelType :: Stage
209+ | ChannelType :: PublicThread
210+ | ChannelType :: PrivateThread
211+ | ChannelType :: NewsThread
206212 )
207213 }
208214
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ enum_number! {
254254 /// An indicator that the channel is a forum [`GuildChannel`].
255255 Forum = 15 ,
256256 _ => Unknown ( u8 ) ,
257- }
257+ } // Make sure to update [`GuildChannel::is_text_based`].
258258}
259259
260260impl ChannelType {
You can’t perform that action at this time.
0 commit comments