Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Delete discussion embed when entry is deleted #301

Merged
merged 6 commits into from Jun 11, 2021

Conversation

Belvix
Copy link
Contributor

@Belvix Belvix commented Jun 10, 2021

Helps in keeping the discussion channel clean when someone accidently sends something in resource or showcase.

Right now it deletes the embed but maybe editing the embed to say the original message has been deleted would've been better.

Also, for some reason, black has added an import statement in line 19. I don't know if its necessary.

pgbot/__init__.py Outdated Show resolved Hide resolved
pgbot/__init__.py Outdated Show resolved Hide resolved
@ankith26
Copy link
Member

This PR is looking good, but I have left a review for a few changes that could be done.
Also, as an additional feature, maybe you could extend the bit of code, modify a bit of it and apply it to on_message_edit function, so that when people edit their entry/resource it also edits the repost ;)
👍

@Belvix
Copy link
Contributor Author

Belvix commented Jun 11, 2021

I have removed the import and added the edit feature.

@Belvix Belvix requested a review from ankith26 June 11, 2021 07:02
pgbot/__init__.py Outdated Show resolved Hide resolved
pgbot/__init__.py Outdated Show resolved Hide resolved
@Belvix
Copy link
Contributor Author

Belvix commented Jun 11, 2021

Is it fine now?

@Belvix Belvix requested a review from ankith26 June 11, 2021 08:36
Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

Yea should be good! 👍 🥳

@ankith26 ankith26 merged commit db3742f into pygame-community:main Jun 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants