Set message Id after queued send succeeds

This commit is contained in:
RogueException
2016-01-07 03:01:36 -04:00
parent 7442366128
commit 6fdd6b10de
2 changed files with 2 additions and 1 deletions

View File

@@ -136,6 +136,7 @@ namespace Discord.Net
IsTTS = msg.IsTTS
};
var response = await _client.ClientAPI.Send(request).ConfigureAwait(false);
msg.Id = response.Id;
msg.Update(response);
msg.State = MessageState.Normal;
}

View File

@@ -171,7 +171,7 @@ namespace Discord
internal DiscordClient Client => Channel.Client;
/// <summary> Returns the unique identifier for this message. </summary>
public ulong Id { get; }
public ulong Id { get; internal set; }
/// <summary> Returns the channel this message was sent to. </summary>
public Channel Channel { get; }
/// <summary> Returns the author of this message. </summary>