Skip to content

arged responses#3418

Open
lorenzo132 wants to merge 12 commits into
developmentfrom
users/lorenzo132/arged-responses
Open

arged responses#3418
lorenzo132 wants to merge 12 commits into
developmentfrom
users/lorenzo132/arged-responses

Conversation

@lorenzo132

Copy link
Copy Markdown
Member

This add a args feature, for example if your arg is called argreply

You can do: `?reply Hello, read the following: {argreply}

This add a args feature, for example if your arg is called `argreply`

You can do: `?reply Hello, read the following: {argreply}
@lorenzo132 lorenzo132 mentioned this pull request Dec 13, 2025
2 tasks
@lorenzo132 lorenzo132 changed the title Users/lorenzo132/arged responses arged responses Dec 13, 2025
martinbndr
martinbndr previously approved these changes Dec 13, 2025
@StephenDaDev StephenDaDev removed the request for review from ModmailTest December 14, 2025 01:34
StephenDaDev
StephenDaDev previously approved these changes Dec 14, 2025
Comment thread cogs/modmail.py
Comment thread cogs/modmail.py
@lorenzo132 lorenzo132 dismissed stale reviews from StephenDaDev and martinbndr via fed5044 December 14, 2025 02:42
StephenDaDev
StephenDaDev previously approved these changes Dec 14, 2025
@StephenDaDev StephenDaDev added the changelog Changes in PR have been added to draft release that will be used for the changelog on the next ver. label Dec 18, 2025

This comment was marked as spam.

Copilot AI review requested due to automatic review settings January 16, 2026 12:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 10 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cogs/modmail.py
Comment thread cogs/modmail.py
Comment thread cogs/modmail.py
Comment thread cogs/modmail.py
Comment thread cogs/modmail.py
Comment thread cogs/modmail.py Outdated
Comment thread cogs/modmail.py
Comment thread cogs/modmail.py
Comment thread cogs/modmail.py
Comment thread cogs/modmail.py
martinbndr
martinbndr previously approved these changes Jan 16, 2026
StephenDaDev
StephenDaDev previously approved these changes Feb 28, 2026
Signed-off-by: lorenzo132 <50767078+lorenzo132@users.noreply.github.com>
@lorenzo132 lorenzo132 dismissed stale reviews from StephenDaDev and martinbndr via d683a42 March 1, 2026 19:38
martinbndr
martinbndr previously approved these changes Mar 2, 2026
@martinbndr martinbndr requested a review from StephenDaDev March 2, 2026 10:29
StephenDaDev
StephenDaDev previously approved these changes Mar 4, 2026

@sebkuip sebkuip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some issues in this PR that need to be addressed beforehand.

Comment thread cogs/modmail.py Outdated
Comment thread cogs/modmail.py Outdated
Comment thread cogs/modmail.py
Comment thread cogs/modmail.py Outdated
Comment thread cogs/utility.py Outdated
@StephenDaDev StephenDaDev removed the changelog Changes in PR have been added to draft release that will be used for the changelog on the next ver. label Jun 15, 2026
@StephenDaDev

Copy link
Copy Markdown
Member

I discussed this with Lorenzo and removed this from this update to allow additional time for corrections while still working towards the important changes in 4.3.0

@lorenzo132 lorenzo132 dismissed stale reviews from StephenDaDev and martinbndr via 041b23e June 15, 2026 16:53
@lorenzo132 lorenzo132 requested review from StephenDaDev, martinbndr and sebkuip and removed request for martinbndr June 15, 2026 16:54

@martinbndr martinbndr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@StephenDaDev StephenDaDev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine w/ changes

@sebkuip sebkuip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found some bugs, and some typos. Please have these fixed. Thanks!

Comment thread cogs/modmail.py
if not self.bot.args:
embed = discord.Embed(
color=self.bot.error_color,
description="You dont have any args at the moment.",

@sebkuip sebkuip Jul 13, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small typo here, pointed out by copilot. "don't" is missing it's apostrophe

Comment thread cogs/modmail.py
color=self.bot.error_color,
description="You dont have any args at the moment.",
)
embed.set_footer(text=f'Check "{self.bot.prefix}help args add" to add an arg.')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change this text to See"{self.bot.prefix}help args add" for how to add an arg.

Comment thread cogs/modmail.py
"""
Add an arg.

Simply to add an arg, do: ```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a comma after "simply"

Comment thread cogs/modmail.py

if self.bot.args:
msg = UnseenFormatter().format(msg, **self.bot.args)
msg = self.bot.formatter.format(msg, **self.bot.args)

@sebkuip sebkuip Jul 13, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The system breaks when an arg with a . character in the name is added. It tries to resolve it as an attribute causing either an <invalid> or an error to appear.

Using a string as an arg causes no reply and a silent error.
Image
Image

Using a forbidden arg causes an <invalid> to appear (here I did ?r testing {channel.name})
Image

Formatreply correctly works and doesn't cause issues

@StephenDaDev StephenDaDev added the changelog Changes in PR have been added to draft release that will be used for the changelog on the next ver. label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog Changes in PR have been added to draft release that will be used for the changelog on the next ver.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants