@@ -37,11 +37,6 @@ namespace Discord | |||||
/// </summary> | /// </summary> | ||||
int Version { get; } | int Version { get; } | ||||
/// <summary> | |||||
/// Gets the time that the interaction was received. | |||||
/// </summary> | |||||
DateTimeOffset ReceivedAt { get; } | |||||
/// <summary> | /// <summary> | ||||
/// Responds to an Interaction with type <see cref="InteractionResponseType.ChannelMessageWithSource"/>. | /// Responds to an Interaction with type <see cref="InteractionResponseType.ChannelMessageWithSource"/>. | ||||
/// </summary> | /// </summary> | ||||
@@ -17,7 +17,7 @@ namespace Discord.Rest | |||||
#region InteractionHelper | #region InteractionHelper | ||||
public static bool CanSendResponse(IDiscordInteraction interaction) | public static bool CanSendResponse(IDiscordInteraction interaction) | ||||
{ | { | ||||
return (DateTime.UtcNow - interaction.ReceivedAt).TotalSeconds < ResponseTimeLimit; | |||||
return (DateTime.UtcNow - interaction.CreatedAt).TotalSeconds < ResponseTimeLimit; | |||||
} | } | ||||
public static bool CanRespondOrFollowup(IDiscordInteraction interaction) | public static bool CanRespondOrFollowup(IDiscordInteraction interaction) | ||||
{ | { | ||||
@@ -47,10 +47,6 @@ namespace Discord.WebSocket | |||||
public DateTimeOffset CreatedAt | public DateTimeOffset CreatedAt | ||||
=> SnowflakeUtils.FromSnowflake(Id); | => SnowflakeUtils.FromSnowflake(Id); | ||||
/// <inheritdoc/> | |||||
public DateTimeOffset ReceivedAt { get; private set; } | |||||
internal abstract bool _hasResponded { get; set; } | internal abstract bool _hasResponded { get; set; } | ||||
/// <summary> | /// <summary> | ||||
@@ -62,7 +58,6 @@ namespace Discord.WebSocket | |||||
internal SocketInteraction(DiscordSocketClient client, ulong id, ISocketMessageChannel channel) | internal SocketInteraction(DiscordSocketClient client, ulong id, ISocketMessageChannel channel) | ||||
: base(client, id) | : base(client, id) | ||||
{ | { | ||||
ReceivedAt = DateTime.UtcNow; | |||||
Channel = channel; | Channel = channel; | ||||
} | } | ||||