Add [p]bank add/sub subcommands #6740

Merged
Evanroby merged 5 commits from bank+- into V3/develop 2026-05-23 07:07:58 +02:00
Evanroby commented 2026-04-13 16:26:45 +02:00 (Migrated from github.com)

Description of the changes

Adds [p]bank add and [p]bank sub subcommands as a more intuitive alternative to [p]bank set with +/- prefix.

Discussed in https://discord.com/channels/133049272517001216/133049878837329920/1491377608510931018 ; Accepted by Jackenmen.

Have the changes in this PR been tested?

No, I do not use economy on my bots

### Description of the changes Adds `[p]bank add` and `[p]bank sub` subcommands as a more intuitive alternative to `[p]bank set` with `+/-` prefix. Discussed in https://discord.com/channels/133049272517001216/133049878837329920/1491377608510931018 ; Accepted by Jackenmen. ### Have the changes in this PR been tested? <!-- Choose one (remove the line that doesn't apply): --> No, I do not use economy on my bots <!-- If the question doesn't apply (for example, it's not a code change), choose Yes. Please respond to this question truthfully. We do not delay nor reject PRs based on the answer to this question but it allows to better review this PR. -->
Jackenmen (Migrated from github.com) requested changes 2026-05-22 06:56:32 +02:00
@ -47,0 +65,4 @@
Example:
- ``[p]bank add @Twentysix 100`` - Increases balance by 100
**Arguments**
Jackenmen (Migrated from github.com) commented 2026-05-22 06:54:27 +02:00
    - ``[p]bank add @Twentysix 100`` - Increases balance by 100
```suggestion - ``[p]bank add @Twentysix 100`` - Increases balance by 100 ```
Jackenmen (Migrated from github.com) commented 2026-05-22 06:56:25 +02:00

The order of the commands in the docs is, for better or worse, supposed to be alphabetical. bank add should be before bank balance

The order of the commands in the docs is, for better or worse, supposed to be alphabetical. `bank add` should be before `bank balance`
@ -98,6 +124,32 @@ Examples:
- ``<to>`` The user to set the currency of.
Jackenmen (Migrated from github.com) commented 2026-05-22 06:54:48 +02:00
    - ``[p]bank sub @Twentysix 50`` - Decreases balance by 50
```suggestion - ``[p]bank sub @Twentysix 50`` - Decreases balance by 50 ```
@ -286,6 +286,68 @@ class Economy(commands.Cog):
else:
Jackenmen (Migrated from github.com) commented 2026-05-22 06:51:54 +02:00
        - `[p]bank add @Twentysix 100` - Increases balance by 100
```suggestion - `[p]bank add @Twentysix 100` - Increases balance by 100 ```
Jackenmen (Migrated from github.com) commented 2026-05-22 06:53:33 +02:00
        - `[p]bank sub @Twentysix 50` - Decreases balance by 50
```suggestion - `[p]bank sub @Twentysix 50` - Decreases balance by 50 ```
Jackenmen (Migrated from github.com) reviewed 2026-05-23 07:05:05 +02:00
Jackenmen (Migrated from github.com) reviewed 2026-05-23 07:06:26 +02:00
@ -286,6 +286,68 @@ class Economy(commands.Cog):
else:
Jackenmen (Migrated from github.com) commented 2026-05-23 07:06:18 +02:00
    @_bank.command(name="sub", aliases=["subtract"])
```suggestion @_bank.command(name="sub", aliases=["subtract"]) ```
Jackenmen (Migrated from github.com) approved these changes 2026-05-23 07:06:39 +02:00
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!6740
No description provided.