Fixed TTS
This commit is contained in:
@@ -55,6 +55,7 @@ namespace Discord.Net
|
|||||||
internal Message QueueSend(Channel channel, string text, bool isTTS)
|
internal Message QueueSend(Channel channel, string text, bool isTTS)
|
||||||
{
|
{
|
||||||
Message msg = new Message(0, channel, channel.IsPrivate ? channel.Client.PrivateUser : channel.Server.CurrentUser);
|
Message msg = new Message(0, channel, channel.IsPrivate ? channel.Client.PrivateUser : channel.Server.CurrentUser);
|
||||||
|
msg.IsTTS = isTTS;
|
||||||
msg.RawText = text;
|
msg.RawText = text;
|
||||||
msg.Text = msg.Resolve(text);
|
msg.Text = msg.Resolve(text);
|
||||||
msg.Nonce = GenerateNonce();
|
msg.Nonce = GenerateNonce();
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ namespace Discord
|
|||||||
public User User { get; }
|
public User User { get; }
|
||||||
|
|
||||||
/// <summary> Returns true if the message was sent as text-to-speech by someone with permissions to do so. </summary>
|
/// <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>
|
/// <summary> Returns the state of this message. Only useful if UseMessageQueue is true. </summary>
|
||||||
public MessageState State { get; internal set; }
|
public MessageState State { get; internal set; }
|
||||||
/// <summary> Returns the raw content of this message as it was received from the server. </summary>
|
/// <summary> Returns the raw content of this message as it was received from the server. </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user