Fixed TTS

This commit is contained in:
RogueException
2016-02-18 13:16:01 -04:00
parent 564e6ca2cc
commit 00f8c7a733
2 changed files with 2 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ namespace Discord.Net
internal Message QueueSend(Channel channel, string text, bool isTTS)
{
Message msg = new Message(0, channel, channel.IsPrivate ? channel.Client.PrivateUser : channel.Server.CurrentUser);
msg.IsTTS = isTTS;
msg.RawText = text;
msg.Text = msg.Resolve(text);
msg.Nonce = GenerateNonce();

View File

@@ -177,7 +177,7 @@ namespace Discord
public User User { get; }
/// <summary> Returns true if the message was sent as text-to-speech by someone with permissions to do so. </summary>
public bool IsTTS { get; private set; }
public bool IsTTS { get; internal set; }
/// <summary> Returns the state of this message. Only useful if UseMessageQueue is true. </summary>
public MessageState State { get; internal set; }
/// <summary> Returns the raw content of this message as it was received from the server. </summary>