Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add convenience formatting caption methods. #741

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NFRCG
Copy link

@NFRCG NFRCG commented May 23, 2024

The following PR adds convenience methods to allow caption formatting from the CommandContext for a different recipient that is not the command sender.

The benefit of this is to allow usage of the same mechanisms for formatting/sending captions for the sender AND the recipient of a command.

If there is an alternative or preferred way to achieve the same goal, please let me know and I'll close this PR.

@broccolai
Copy link
Member

not sure about this one, you could just do this yourself by getting the CaptionFormatter / CaptionRegistry from the CommandManager. If you still think there's a good reason change this pr a little so that the old methods call this method and supply this.commandSender

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants