Skip to content
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

Let InteractionOriginalResponseUpdater implement Deletable. #1209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Saladoc
Copy link
Member

@Saladoc Saladoc commented Feb 2, 2023

Checklist

Changelog

  • InteractionOriginalResponseUpdater now implements Deletable

Breaking Changes

Description

Closes: #1203

Notes: Audit reasons being ignored if not supported is made explicit in the documentation. InteractionOriginalResponseUpdater is safe to store and reuse.

Footnotes

  1. At least started a running bot instance with your changes and triggered an event so your changed code gets executed.

@Saladoc Saladoc added the improvement An issue which suggests an improvement of an existing feature label Feb 2, 2023
@Saladoc Saladoc added this to the Next Version milestone Feb 2, 2023
@Saladoc Saladoc requested a review from felldo February 2, 2023 09:40
@Saladoc Saladoc force-pushed the GH1203-deletable-interaction-updates branch from be3cb13 to 11661b2 Compare February 2, 2023 12:33
@Saladoc
Copy link
Member Author

Saladoc commented Feb 2, 2023

I wanted to omit "breaking" api changes but you're right, of those are internal anyway and using null as an audit log reason is safe all up to the RestRequest implementation.

@Saladoc Saladoc force-pushed the GH1203-deletable-interaction-updates branch from 11661b2 to ef9d45c Compare February 2, 2023 12:44
 - Update the documentation to specify that audit log reason support depends on discord.
@Saladoc Saladoc force-pushed the GH1203-deletable-interaction-updates branch from ef9d45c to 4be6071 Compare February 2, 2023 12:44
Comment on lines +33 to +35
default CompletableFuture<Void> deleteInitialResponse(InteractionBase interaction) {
return deleteInitialResponse(interaction, null);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this can be removed since passing null as the reason anywhere else has the same effect as this method currently.
In the InteractionMessageBuilder the method overload with the reason is also missing,

@Bastian Bastian modified the milestones: Version 3.8.0, Next Version Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An issue which suggests an improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InteractionOriginalResponseUpdater does not implement Deletable
3 participants