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

Options / Subcommands #4

Closed
NewtTheWolf opened this issue Aug 20, 2022 · 7 comments
Closed

Options / Subcommands #4

NewtTheWolf opened this issue Aug 20, 2022 · 7 comments

Comments

@NewtTheWolf
Copy link

how exactly do I work with options or subcommands?

because the template "ApplicationCommand.ts" does not support this

i'm trying to add an option to a command with addStringOption, but unfortunately it doesn't work

@OfficialDelta
Copy link
Owner

Oh, my bad I forgot to implement an example of those. But basically, most of the implementation has to be manual at the moment due to discord.js lacking official "support" for Subcommands. I will work on an update to this now to make it part of the ApplicationCommand template.

@NewtTheWolf
Copy link
Author

that was fast with the answer O.o

how long do you think you need for the update?

@OfficialDelta
Copy link
Owner

I'll try to get it updated by the end of today :)

@NewtTheWolf
Copy link
Author

can you post a comment again in this Issue when you are done? ^^

@OfficialDelta
Copy link
Owner

@NewtTheWolf should be fixed now with the latest commit with examples too. If there continue to be issues reopen the issue/create a new one.

@NewtTheWolf
Copy link
Author

sorry to bother you again

How does it work now with the input options?

E.g.

		.addStringOption((option) => {
			option.setName('message').setDescription('The message to reply with.');
		})

@OfficialDelta
Copy link
Owner

I'm not sure I understand the problem. Could you elaborate? If possible have an entire code block example that I can replicate.

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

No branches or pull requests

2 participants