Make HasResponded public and add it to IDiscordInteraction (#1994)

This commit is contained in:
Quin Lynch
2021-12-24 10:38:22 -04:00
committed by GitHub
parent ad20e03a98
commit 1fbcbb8a67
8 changed files with 31 additions and 66 deletions

View File

@@ -411,11 +411,7 @@ namespace Discord.WebSocket
}
await Discord.Rest.ApiClient.CreateInteractionResponseAsync(response, Id, Token, options).ConfigureAwait(false);
lock (_lock)
{
HasResponded = true;
}
HasResponded = true;
}
/// <inheritdoc/>
@@ -439,11 +435,7 @@ namespace Discord.WebSocket
}
await Discord.Rest.ApiClient.CreateInteractionResponseAsync(response, Id, Token, options).ConfigureAwait(false);
lock (_lock)
{
HasResponded = true;
}
HasResponded = true;
}
//IComponentInteraction

View File

@@ -318,11 +318,7 @@ namespace Discord.WebSocket
}
await Discord.Rest.ApiClient.CreateInteractionResponseAsync(response, Id, Token, options).ConfigureAwait(false);
lock (_lock)
{
HasResponded = true;
}
HasResponded = true;
}
}
}