The superstarify command function definition isn't correctly capturing the (optional) reason string, causing the command set the first word as the reason, if specified, or raising an error if the first word contains an apostrophe:
|
@command(name="superstarify", aliases=("force_nick", "star")) |
|
async def superstarify( |
|
self, |
|
ctx: Context, |
|
member: Member, |
|
duration: Expiry, |
|
reason: str = None |
|
) -> None: |
Changing to:
@command(name="superstarify", aliases=("force_nick", "star"))
async def superstarify(
self,
ctx: Context,
member: Member,
duration: utils.Expiry,
*,
reason: str = None
) -> None:
Should capture the entire reason string & resolve the issue.
The superstarify command function definition isn't correctly capturing the (optional) reason string, causing the command set the first word as the reason, if specified, or raising an error if the first word contains an apostrophe:
bot/bot/cogs/moderation/superstarify.py
Lines 106 to 113 in 33dd712
Changing to:
Should capture the entire reason string & resolve the issue.