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

Add support for custom footer text #32

Closed
wants to merge 1 commit into from

Conversation

thoughts3rased
Copy link
Contributor

In some cases, users may want to display custom text in the footer of the embed to give extra detail. This could be the time at which the embed was requested, the author of the original interaction or a custom message to users.

With this change, I've added an additional argument, customFooterText to allow a string to be passed containing the text that the user wants to display next to the page count, separated by a hyphon.

Example:
Say the user wants the time of the embed's request to be set as the footer. ("Requested at 12:00PM")

When passed through, the footer text would appear like this:
Page X/Y - Requested at 12:00PM

I hope this adds some functionality to this already extremely useful module.

@thoughts3rased
Copy link
Contributor Author

It should be important to note that this argument that has been added is optional, and defaults to an empty string to not cause problems with setting the footer later on down the line.

@ryzyx
Copy link
Owner

ryzyx commented Nov 24, 2021

Not sure if many people require this

@ryzyx ryzyx closed this Dec 6, 2021
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.

None yet

2 participants