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

Paste Command: use option to specify language / use modals #319

Open
SIMULATAN opened this issue Apr 7, 2023 · 0 comments
Open

Paste Command: use option to specify language / use modals #319

SIMULATAN opened this issue Apr 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@SIMULATAN
Copy link
Member

Right now, the language is being parsed from a codeblock.

That's leftover from the pre-slash command era, and now that multiple options exist, we should make use of that by adding an option to specify the language of the pasted code.

Additionally, since slash commands only allow one-line freeform inputs, we should consider switching to modals.
They allow a length of up to 4000 characters with the paragraph text input style which should be sufficient for most code.
See https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-styles

@SIMULATAN SIMULATAN added the enhancement New feature or request label Apr 7, 2023
@SIMULATAN SIMULATAN self-assigned this Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant