Browse Source

fix: Disable TIV restrictions for rollout of TIV (#2342)

tags/3.7.2
Quin Lynch GitHub 3 years ago
parent
commit
7adf516b20
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs

+ 6
- 2
src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs View File

@@ -21,8 +21,12 @@ namespace Discord.WebSocket
/// <summary>
/// Gets whether or not the guild has Text-In-Voice enabled and the voice channel is a TiV channel.
/// </summary>
public virtual bool IsTextInVoice
=> Guild.Features.HasTextInVoice;
/// <remarks>
/// Discord currently doesn't have a way to disable Text-In-Voice yet so this field is always
/// <see langword="true"/> on <see cref="SocketVoiceChannel"/>s and <see langword="false"/> on
/// <see cref="SocketStageChannel"/>s.
/// </remarks>
public virtual bool IsTextInVoice => true;

/// <inheritdoc />
public int Bitrate { get; private set; }


Loading…
Cancel
Save