Add note about updating cogs to update message and docs #4910

Merged
Vexed01 merged 6 commits from updatecogs into V3/develop 2021-04-03 20:38:57 +02:00
Vexed01 commented 2021-03-22 17:54:16 +01:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Add a note to the DM for when Red's out of date to update cogs and the Updating Red docs.

Because I have zero trust in myself I set the version to 3.4.6 to test this, and it worked. Surprise.

### Type - [ ] Bugfix - [x] Enhancement - [ ] New feature ### Description of the changes Add a note to the DM for when Red's out of date to update cogs and the Updating Red docs. Because I have zero trust in myself I set the version to 3.4.6 to test this, and it worked. Surprise.
Jackenmen (Migrated from github.com) requested changes 2021-04-03 01:41:08 +02:00
@ -53,6 +53,8 @@ If you have Red 3.2.0 or newer, you can upgrade by following these 4 easy steps:
Jackenmen (Migrated from github.com) commented 2021-04-03 01:33:32 +02:00
5. If you have any 3rd-party cogs installed, we highly recommend you update them with this command in Discord: ``[p]cog update`` (``[p]`` is considered as your prefix)
```suggestion 5. If you have any 3rd-party cogs installed, we highly recommend you update them with this command in Discord: ``[p]cog update`` (``[p]`` is considered as your prefix) ```
@ -86,6 +88,8 @@ If you have Red 3.2.0 or newer, you can upgrade by following these 4 easy steps:
Jackenmen (Migrated from github.com) commented 2021-04-03 01:33:55 +02:00
5. If you have any 3rd-party cogs installed, we highly recommend you update them with this command in Discord: ``[p]cog update`` (``[p]`` is considered as your prefix)
```suggestion 5. If you have any 3rd-party cogs installed, we highly recommend you update them with this command in Discord: ``[p]cog update`` (``[p]`` is considered as your prefix) ```
Jackenmen (Migrated from github.com) commented 2021-04-03 01:40:55 +02:00

In addition to this suggestion, you also need to replace [p] with bot's prefix.
To do that, you can call send_to_owners_with_prefix_replaced() instead of bot.send_to_owners() call in the last line of this function. The send_to_owners_with_prefix_replaced() can be imported from redbot.core.utils._internal_utils module.

                        "\nOnce you've started up your bot again, if you have any 3rd-party cogs"
                        " installed we then highly recommend you update them with this command"
                        " in Discord: `[p]cog update`"
In addition to this suggestion, you also need to replace `[p]` with bot's prefix. To do that, you can call `send_to_owners_with_prefix_replaced()` instead of `bot.send_to_owners()` call in the last line of this function. The `send_to_owners_with_prefix_replaced()` can be imported from `redbot.core.utils._internal_utils` module. ```suggestion "\nOnce you've started up your bot again, if you have any 3rd-party cogs" " installed we then highly recommend you update them with this command" " in Discord: `[p]cog update`" ```
Vexed01 commented 2021-04-03 12:03:59 +02:00 (Migrated from github.com)

Thanks for the review. I've applied the requested changes.

Thanks for the review. I've applied the requested changes.
Jackenmen (Migrated from github.com) approved these changes 2021-04-03 20:38:56 +02:00
Jackenmen (Migrated from github.com) left a comment

Looks good now

Looks good now
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!4910
No description provided.