use interaction method in `InteractionModuleBase.DeleteOriginalRespon… (#2995)
* use interaction method in `InteractionModuleBase.DeleteOriginalResponseAsync()` * ok this was even more scuffed
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user