Cog-Creators / Cog-Creators/Red-DiscordBot

[V3 Alias] Parameterized and fixed-argument command aliases

Open
#2,011 7 comments 1 reaction 0 assignees View on GitHub
Category: Cogs - Alias Status: Needs Discussion Type: Feature
Dominant language
Python
Stars
5.7k
Forks
2.5k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

# Feature request

#### Select the type of feature you are requesting:

- [x] Command

#### Describe your requested feature

I've been in the situation where I or other users want to create shortcuts for long commands with parameters in the middle of those commands, instead of at the end. On the other hand, I've also wanted to prevent any parameters from being added to the end of the aliased command. The Alias cog is the right place to add both.

I wouldn't mind doing this, but it should be fairly simple to put together. I also don't want to start another thing unless it's wanted in core.

What it would probably involve:
- Switch to using discord.py's view machinery for argument parsing parity
- Add syntax for designating defaults or required arguments to aliases
- More things I haven't thought of yet

---

**Update**
At the current moment, it seems as though some of what was requested by this issue has been addressed in #2455. However, Alias still does not support adding defaults to custom parameters.

Contributor guide

Open the contributing guide

Research direction

Start with the Alias cog and review discord.py's view machinery for argument-parsing parity. Compare the current behavior with the parts addressed in #2455; done should include parameters in the middle of aliases, fixed-argument aliases, and defaults for custom parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.