Skip to content

Prevent ghost-pings in docs get command#1694

Merged
ChrisLovering merged 18 commits into
python-discord:mainfrom
TizzySaurus:Update-docs-get-to-prevent-ghost-pings
Jul 23, 2021
Merged

Prevent ghost-pings in docs get command#1694
ChrisLovering merged 18 commits into
python-discord:mainfrom
TizzySaurus:Update-docs-get-to-prevent-ghost-pings

Conversation

@TizzySaurus
Copy link
Copy Markdown
Contributor

Solves #1624.

Will no longer delete the invoking message when the given symbol is invalid if the message contains user/role mentions. If it has mentions, allows deletion of error message through reactions.

Won't delete the invoking message when the giving symbol is invalid if the message contains user/role mentions. If it has mentions, allows deletions of error message through reactions.
Comment thread bot/exts/info/doc/_cog.py Outdated
Comment thread bot/exts/info/doc/_cog.py Outdated
@Numerlor
Copy link
Copy Markdown
Contributor

the pypi command and possibly others in the future also delete invalid invocations, we should extract this to an util function under utils.messages instead of only implementing the functionality for this cog.
Also, like @​Bluenix2 mentioned, please do not make unnecessary styling changes like the imports

Comment thread bot/exts/info/doc/_cog.py Outdated
@TizzySaurus TizzySaurus self-assigned this Jul 23, 2021
@TizzySaurus TizzySaurus added a: frontend Related to output and formatting p: 3 - low Low Priority a: utility Related to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils) labels Jul 23, 2021
@TizzySaurus TizzySaurus added the t: enhancement Changes or improvements to existing features label Jul 23, 2021
Comment thread bot/exts/info/doc/_cog.py Outdated
Comment thread bot/exts/info/doc/_cog.py
Comment thread bot/exts/info/doc/_cog.py Outdated
Co-authored-by: Bluenix <bluenixdev@gmail.com>
Comment thread bot/exts/info/doc/_cog.py
Co-authored-by: Bluenix <bluenixdev@gmail.com>
Copy link
Copy Markdown
Contributor

@Bluenix2 Bluenix2 left a comment

Choose a reason for hiding this comment

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

I haven't tested it, but I see nothing wrong. Looks good!

Copy link
Copy Markdown
Contributor

@wookie184 wookie184 left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Copy Markdown
Contributor

@NIRDERIi NIRDERIi left a comment

Choose a reason for hiding this comment

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

The code seems to be solid and should work just fine.

@ChrisLovering ChrisLovering merged commit 56f4e4e into python-discord:main Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: frontend Related to output and formatting a: utility Related to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils) p: 3 - low Low Priority t: enhancement Changes or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants