WIP: Added new optional param to [p]muteset senddm for auto unmute dm #6366

Closed
turbo-jayce wants to merge 1 commit from Separate-muteset-senddm-for-unmutes into V3/develop
turbo-jayce commented 2024-04-25 10:08:47 +02:00 (Migrated from github.com)

Description of the changes

  • Added a new variable dm_auto_unmute as a toggle
  • senddm has new optional parameter that can toggle dm's off for auto unmutes
  • if parameter isnt specified it will default to value inputted to setdm
  • allows for dm's to be sent for mutes, and no dm's sent for when they are automatically unmuted

Have the changes in this PR been tested?

No

Additional Notes

This is my first PR to repo and unsure if this is the proper way to go about this.

Issue

Closes #6262

### Description of the changes * Added a new variable dm_auto_unmute as a toggle * senddm has new optional parameter that can toggle dm's off for auto unmutes * if parameter isnt specified it will default to value inputted to setdm * allows for dm's to be sent for mutes, and no dm's sent for when they are _automatically_ unmuted ### Have the changes in this PR been tested? No ### Additional Notes This is my first PR to repo and unsure if this is the proper way to go about this. ### Issue Closes #6262
Flame442 commented 2024-04-25 20:52:24 +02:00 (Migrated from github.com)

I know this is still a draft, but here's some tips about what is currently missing to get you on the right track:

  • You need to make a config call to get the value of dm_auto_unmute before it can be used as a value.
    • It might make sense to move these checks within _send_dm_notification by adding a parameter specifying whether it was called for an auto unmute or a manual unmute.
  • Rather than adding to the existing command, you should probably make a separate command for configuring this new setting.
  • You need to use the black autoformatter to style the updated code, in accordance with the CONTRIBUTING.MD file.
I know this is still a draft, but here's some tips about what is currently missing to get you on the right track: - You need to make a config call to get the value of `dm_auto_unmute` before it can be used as a value. - It might make sense to move these checks within `_send_dm_notification` by adding a parameter specifying whether it was called for an auto unmute or a manual unmute. - Rather than adding to the existing command, you should probably make a separate command for configuring this new setting. - You need to use the `black` autoformatter to style the updated code, in accordance with the `CONTRIBUTING.MD` file.
Kowlin commented 2024-05-02 23:56:42 +02:00 (Migrated from github.com)

Due to the lack of activity on this PR, I'm gonna go ahead and close this.

Due to the lack of activity on this PR, I'm gonna go ahead and close this.

Pull request closed

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!6366
No description provided.