Skip to content

Commit

Permalink
Make stage channels text-based (#2519)
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 authored Aug 26, 2023
1 parent 29e8ff0 commit ba8c07a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/model/channel/guild_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ impl GuildChannel {
/// Whether or not this channel is text-based, meaning that it is possible to send messages.
#[must_use]
pub fn is_text_based(&self) -> bool {
matches!(self.kind, ChannelType::Text | ChannelType::News | ChannelType::Voice)
matches!(
self.kind,
ChannelType::Text | ChannelType::News | ChannelType::Voice | ChannelType::Stage
)
}

/// Broadcasts to the channel that the current user is typing.
Expand Down

0 comments on commit ba8c07a

Please sign in to comment.