Set message Id after queued send succeeds
This commit is contained in:
@@ -136,6 +136,7 @@ namespace Discord.Net
|
|||||||
IsTTS = msg.IsTTS
|
IsTTS = msg.IsTTS
|
||||||
};
|
};
|
||||||
var response = await _client.ClientAPI.Send(request).ConfigureAwait(false);
|
var response = await _client.ClientAPI.Send(request).ConfigureAwait(false);
|
||||||
|
msg.Id = response.Id;
|
||||||
msg.Update(response);
|
msg.Update(response);
|
||||||
msg.State = MessageState.Normal;
|
msg.State = MessageState.Normal;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ namespace Discord
|
|||||||
internal DiscordClient Client => Channel.Client;
|
internal DiscordClient Client => Channel.Client;
|
||||||
|
|
||||||
/// <summary> Returns the unique identifier for this message. </summary>
|
/// <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>
|
/// <summary> Returns the channel this message was sent to. </summary>
|
||||||
public Channel Channel { get; }
|
public Channel Channel { get; }
|
||||||
/// <summary> Returns the author of this message. </summary>
|
/// <summary> Returns the author of this message. </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user