use interaction method in `InteractionModuleBase.DeleteOriginalRespon… (#2995)

* use interaction method in `InteractionModuleBase.DeleteOriginalResponseAsync()`

* ok this was even more scuffed
This commit is contained in:
Mihail Gribkov
2024-09-03 14:26:45 +03:00
committed by GitHub
parent 9b8c7b1f69
commit f65d3ad14a

View File

@@ -109,11 +109,8 @@ namespace Discord.Interactions
=> Context.Interaction.ModifyOriginalResponseAsync(func, options); => Context.Interaction.ModifyOriginalResponseAsync(func, options);
/// <inheritdoc cref="IDeletable.DeleteAsync(RequestOptions)"/> /// <inheritdoc cref="IDeletable.DeleteAsync(RequestOptions)"/>
protected virtual async Task DeleteOriginalResponseAsync() protected virtual Task DeleteOriginalResponseAsync()
{ => Context.Interaction.DeleteOriginalResponseAsync().ConfigureAwait(false);
var response = await Context.Interaction.GetOriginalResponseAsync().ConfigureAwait(false);
await response.DeleteAsync().ConfigureAwait(false);
}
/// <inheritdoc cref="IDiscordInteraction.RespondWithModalAsync(Modal, RequestOptions)"/> /// <inheritdoc cref="IDiscordInteraction.RespondWithModalAsync(Modal, RequestOptions)"/>
protected virtual Task RespondWithModalAsync(Modal modal, RequestOptions options = null) protected virtual Task RespondWithModalAsync(Modal modal, RequestOptions options = null)