-
-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModifyAsync Attachments Bug Fix #2236 #2742
Conversation
Test interactions to make life easier for reviewer.
|
How about settings Attachments to |
Just reminded me that I actually tried that but instead of investigating the issue with that I got side tracked. Will push another commit later for this, the issue exists in the else statement of checking if attachments are specified, if they are not we enter the else scope and pass the attachments and convert to array without checking if the value is null. |
src/Discord.Net.Rest/API/Rest/ModifyInteractionResponseParams.cs
Outdated
Show resolved
Hide resolved
src/Discord.Net.Rest/Entities/Interactions/InteractionHelper.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
* Similar to PR #2742 but this now fixes the UpdateAsync attachments bug. * Update functions. * `Update` => `UpdateAsync` --------- Co-authored-by: Misha133 <mihagribkov133@gmail.com>
PR in relation to #2236
Edits Permitted
Simple fix, could be improved if necessary. ModifyAsync can now has access to an Attachment object if an empty array is passed the image(s) will be removed from the target interaction being modified.