[Fix] Add missing parameters to RespondWithModalAsync methods and implement missing overloads (#2769)

* Added missing modifyModal parameters to RespondWithModalAsync methods

* Fix typo

* Remove unnecessary parts

* Add missing `options` parameter

* Add missing overload

* Use `.Invoke` with `null` check to simplify

* Remove code duplication

* Remove code duplication

* Add missing payload to `RestInteractionModuleBase`
This commit is contained in:
zobweyt
2023-10-18 00:31:56 +03:00
committed by GitHub
parent 33e8340765
commit 4e78aec2d0
6 changed files with 88 additions and 64 deletions

View File

@@ -104,7 +104,7 @@ namespace Discord.WebSocket
/// <inheritdoc/>
public override Task RespondWithModalAsync(Modal modal, RequestOptions requestOptions = null)
=> throw new NotSupportedException("Autocomplete interactions cannot have normal responces!");
=> throw new NotSupportedException("Autocomplete interactions cannot have normal responses!");
//IAutocompleteInteraction
/// <inheritdoc/>