[Mod] Default days in [p]ban command are now configurable #2930

Merged
Ianardo-DiCaprio merged 8 commits from patch-2-1 into V3/develop 2020-01-23 20:37:12 +01:00
Ianardo-DiCaprio commented 2019-08-12 10:25:19 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Added a [p]modset defaultdays command requested in #2441

### Type - [ ] Bugfix - [x] Enhancement - [ ] New feature ### Description of the changes Added a [p]modset defaultdays command requested in #2441
palmtree5 (Migrated from github.com) reviewed 2019-08-12 10:25:19 +02:00
Twentysix26 (Migrated from github.com) reviewed 2019-08-12 10:25:19 +02:00
Jackenmen (Migrated from github.com) requested changes 2020-01-17 19:16:39 +01:00
Jackenmen (Migrated from github.com) left a comment

Looks good, just few small issues with clarity of strings.

Looks good, just few small issues with clarity of strings.
Jackenmen (Migrated from github.com) commented 2020-01-17 18:43:57 +01:00

This file should be called 2930.enhance.rst not 2930.enhance.rst.txt

This file should be called `2930.enhance.rst` not `2930.enhance.rst.txt`
@ -48,6 +50,12 @@ class ModSettings(MixinMeta):
msg += _("Reinvite on unban: {yes_or_no}\n").format(
Jackenmen (Migrated from github.com) commented 2020-01-17 19:09:19 +01:00

This isn't clear enough, after discussion in discord we decided to suggest just using Discord's terminology here, but if you have better idea on how to word this, feel free to use it.

            if default_days:
                msg += _(
                    "Default message history delete on ban: Previous {num_days} days\n"
                ).format(num_days=default_days)
            else:
                msg += _("Default message history delete on ban: Don't delete any\n")
This isn't clear enough, after discussion in discord we decided to suggest just using Discord's terminology here, but if you have better idea on how to word this, feel free to use it. ```suggestion if default_days: msg += _( "Default message history delete on ban: Previous {num_days} days\n" ).format(num_days=default_days) else: msg += _("Default message history delete on ban: Don't delete any\n") ```
Jackenmen (Migrated from github.com) commented 2020-01-17 18:38:00 +01:00

This needs an empty line here to show up properly in help and it should be "number of days" not "amount of days" and I think "must be" works better here than "has to"


        The number of days must be between 0 and 7.
This needs an empty line here to show up properly in help and it should be "number of days" not "amount of days" and I think "must be" works better here than "has to" ```suggestion The number of days must be between 0 and 7. ```
Jackenmen (Migrated from github.com) commented 2020-01-17 18:41:39 +01:00

I think this will be clearer if you add "number of" here.

        """Set the default number of days worth of messages to be deleted when a user is banned.
I think this will be clearer if you add "number of" here. ```suggestion """Set the default number of days worth of messages to be deleted when a user is banned. ```
Jackenmen (Migrated from github.com) commented 2020-01-17 19:10:51 +01:00

I think this will be clearer if you add "number of" here.

            return await ctx.send(_("Invalid number of days. Must be between 0 and 7."))
I think this will be clearer if you add "number of" here. ```suggestion return await ctx.send(_("Invalid number of days. Must be between 0 and 7.")) ```
Jackenmen (Migrated from github.com) approved these changes 2020-01-23 20:35:42 +01:00
Jackenmen (Migrated from github.com) left a comment

Looks good to me, thank you for contributing 👍

Looks good to me, thank you for contributing 👍
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!2930
No description provided.