[Core] Docstring full stops and a few other grammar fixes #4023

Merged
Vexed01 merged 3 commits from core-docstring-periods into V3/develop 2020-07-06 20:21:45 +02:00
Vexed01 commented 2020-06-27 19:22:00 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

It seems that the majority of the docstrings in core_commands.py don't have full stops - this adds them!
There are also a few general grammar fixes as well.

### Type - [x] Bugfix - [ ] Enhancement - [ ] New feature ### Description of the changes It seems that the majority of the docstrings in core_commands.py don't have full stops - this adds them! There are also a few general grammar fixes as well.
tekulvw (Migrated from github.com) reviewed 2020-06-27 19:22:00 +02:00
aikaterna (Migrated from github.com) reviewed 2020-06-27 19:24:53 +02:00
@ -2357,16 +2358,15 @@ class Core(commands.Cog, CoreLogic):
@commands.group(name="autoimmune")
aikaterna (Migrated from github.com) commented 2020-06-27 19:24:53 +02:00

This is one string here: "Gets the current members and roles configured for automatic moderation action immunity."

This is one string here: "Gets the current members and roles configured for automatic moderation action immunity."
Jackenmen (Migrated from github.com) reviewed 2020-07-06 18:42:04 +02:00
@ -1428,7 +1429,7 @@ class Core(commands.Cog, CoreLogic):
@_set.command()
Jackenmen (Migrated from github.com) commented 2020-07-06 18:42:03 +02:00

Quotation needed, but I believe we decided that command names in help docstrings in Red should be put in backquotes. (don't change this until someone confirms)

        """Customizes a section of `[p]info`.
Quotation needed, but I believe we decided that command names in help docstrings in Red should be put in backquotes. (don't change this until someone confirms) ```suggestion """Customizes a section of `[p]info`. ```
Jackenmen (Migrated from github.com) requested changes 2020-07-06 19:23:37 +02:00
Jackenmen (Migrated from github.com) left a comment

Looks good, but I found few typos in the lines edited by this PR that could be addressed by it as well

Looks good, but I found few typos in the lines edited by this PR that could be addressed by it as well
@ -157,7 +157,7 @@ class CoreLogic:
Jackenmen (Migrated from github.com) commented 2020-07-06 19:22:53 +02:00
        """Internally reloads modules so that changes are detected."""
```suggestion """Internally reloads modules so that changes are detected.""" ```
@ -1428,7 +1429,7 @@ class Core(commands.Cog, CoreLogic):
@_set.command()
Jackenmen (Migrated from github.com) commented 2020-07-06 19:20:59 +02:00

You know... Just do it 👍

You know... Just do it 👍
@ -2394,7 +2394,7 @@ class Core(commands.Cog, CoreLogic):
self, ctx: commands.Context, *, user_or_role: Union[discord.Member, discord.Role]
Jackenmen (Migrated from github.com) commented 2020-07-06 19:20:04 +02:00
        Makes a user or role immune from automated moderation actions.
```suggestion Makes a user or role immune from automated moderation actions. ```
@ -2407,7 +2407,7 @@ class Core(commands.Cog, CoreLogic):
self, ctx: commands.Context, *, user_or_role: Union[discord.Member, discord.Role]
Jackenmen (Migrated from github.com) commented 2020-07-06 19:19:57 +02:00
        Makes a user or role immune from automated moderation actions.
```suggestion Makes a user or role immune from automated moderation actions. ```
@ -2465,7 +2465,7 @@ class Core(commands.Cog, CoreLogic):
self, ctx: commands.Context, *, channel: Union[discord.TextChannel, int]
Jackenmen (Migrated from github.com) commented 2020-07-06 19:18:59 +02:00
        Adds a destination text channel to receive owner notifications.
```suggestion Adds a destination text channel to receive owner notifications. ```
Jackenmen (Migrated from github.com) approved these changes 2020-07-06 20:21:37 +02:00
Jackenmen (Migrated from github.com) left a comment

Looks good to me.

Looks good to me.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!4023
No description provided.