[Docs] Mod Cog Guide #4886

Merged
Kreusada merged 38 commits from patch-13 into V3/develop 2021-05-18 23:10:30 +02:00
Kreusada commented 2021-03-14 01:07:54 +01:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature
  • Documentation

Description of the changes

Documentation for the Mod cog. (#1734)
Currently not ready for review

### Type - [ ] Bugfix - [ ] Enhancement - [ ] New feature - [x] Documentation ### Description of the changes Documentation for the Mod cog. (#1734) ~~Currently not ready for review~~
bobloy (Migrated from github.com) requested changes 2021-03-18 18:22:43 +01:00
bobloy (Migrated from github.com) commented 2021-03-18 18:22:29 +01:00

Seems to me like renaming the variable to member would be better than having usages in most of the commands.

Seems to me like renaming the variable to `member` would be better than having usages in most of the commands.
@ -863,3 +865,3 @@
elif needs_mute:
await user.edit(mute=True, reason=audit_reason)
await member.edit(mute=True, reason=audit_reason)
elif needs_deafen:
bobloy (Migrated from github.com) commented 2021-03-18 18:21:51 +01:00
        """Unban a user from this server.

Keep the space here, otherwise the next line will be bolded in the help command.

```suggestion """Unban a user from this server. ``` Keep the space here, otherwise the next line will be bolded in the help command.
Jackenmen (Migrated from github.com) reviewed 2021-03-21 01:29:00 +01:00
Jackenmen (Migrated from github.com) left a comment

This PR should update the .github/labeler.yml file similarly to how it's done for existing cog guides:
https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/.github/labeler.yml#L1-L5

"Category: Mod Cog":
  # Source
  - redbot/cogs/mod/*
  # Docs
  - docs/cog_guides/mod.rst
This PR should update the `.github/labeler.yml` file similarly to how it's done for existing cog guides: https://github.com/Cog-Creators/Red-DiscordBot/blob/V3/develop/.github/labeler.yml#L1-L5 ```yaml "Category: Mod Cog": # Source - redbot/cogs/mod/* # Docs - docs/cog_guides/mod.rst ```
Jackenmen (Migrated from github.com) reviewed 2021-03-21 01:35:45 +01:00
Jackenmen (Migrated from github.com) commented 2021-03-21 01:35:44 +01:00

For consistency with the other entries in the labeler file (the one in the branch this PR is created from is outdated so you can't really see that's the case), there should be appropriate comments:

"Category: Mod Cog":
  # Source
  - redbot/cogs/mod/*
  # Docs
  - docs/cog_guides/mod.rst
For consistency with the other entries in the labeler file (the one in the branch this PR is created from is outdated so you can't really see that's the case), there should be appropriate comments: ```suggestion "Category: Mod Cog": # Source - redbot/cogs/mod/* # Docs - docs/cog_guides/mod.rst ```
Kreusada commented 2021-03-21 01:36:51 +01:00 (Migrated from github.com)

Just realized, will update momentarily

Just realized, will update momentarily
Flame442 (Migrated from github.com) requested changes 2021-05-08 03:49:06 +02:00
Flame442 (Migrated from github.com) left a comment

A few grammar issues, but otherwise good to go.

A few grammar issues, but otherwise good to go.
@ -0,0 +1,763 @@
.. _mod:
Flame442 (Migrated from github.com) commented 2021-05-08 03:24:21 +02:00
* ``[days]``: The amount of days of messages to cleanup on ban. This parameter defaults to no days.

The default is not no days, it's the defaultdays setting value.

```suggestion * ``[days]``: The amount of days of messages to cleanup on ban. This parameter defaults to no days. ``` The default is **not** no days, it's the `defaultdays` setting value.
Flame442 (Migrated from github.com) commented 2021-05-08 03:24:40 +02:00
* ``<user_ids...>``: The users to ban. This must be a list of user IDs separated by spaces.
```suggestion * ``<user_ids...>``: The users to ban. This must be a list of user IDs separated by spaces. ```
Flame442 (Migrated from github.com) commented 2021-05-08 03:25:10 +02:00
Use this command without any parameter to see the current setting.
```suggestion Use this command without any parameter to see the current setting. ```
Flame442 (Migrated from github.com) commented 2021-05-08 03:31:38 +02:00
* ``[reason]``: The reason why these users were banned.
```suggestion * ``[reason]``: The reason why these users were banned. ```
Flame442 (Migrated from github.com) commented 2021-05-08 03:31:58 +02:00
    This will ban all the added userids and delete 7 days worth of their messages.
```suggestion This will ban all the added userids and delete 7 days worth of their messages. ```
Flame442 (Migrated from github.com) commented 2021-05-08 03:37:09 +02:00

This should probably be changed to talk about how it's the number of repeated messages needed before further messages are deleted

This should probably be changed to talk about how it's the number of repeated messages needed **before** further messages are deleted
Kreusada commented 2021-05-08 18:18:20 +02:00 (Migrated from github.com)

Thanks for reviewing, I've addressed the outlined changes.

Probably best if this is held off until #4875 is merged, so that I can solve the conflicts which will be caused in the index file.

Thanks for reviewing, I've addressed the outlined changes. Probably best if this is held off until #4875 is merged, so that I can solve the conflicts which will be caused in the index file.
Flame442 (Migrated from github.com) approved these changes 2021-05-18 23:09:41 +02:00
Flame442 (Migrated from github.com) left a comment

All set now, thanks!

All set now, thanks!
Sign in to join this conversation.
No reviewers
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!4886
No description provided.