-
-
Notifications
You must be signed in to change notification settings - Fork 33
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: precondition guides #91
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sapphiredev/website/AuQ1PT3wt4jUW1MpWrPPQ2ES36pr |
Vercel isn't letting me see why the deployment failed :( |
Can you do yarn build and send the ss of errors? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could I make a PR in /framework to change the cooldown precondition error from saying "You have just used this command..." to "This command has just been used"?
Sure!
Furthermore, it might be worth changing the "just" part as well, since the cooldown could be 1 hour for all we know
How about:
There is a cooldown in effect for this command. It can be used again in <time>
Should the guides use the BucketScope enum, or just stick with strings?
The enum
Should the guides use the CommandOptionsRunTypeEnum enum, or just stick with strings?
The enum
The runIn JSDoc description shows lowercase and invalid values. PR goes brrr?
Probably still from v1. Yes please.
There are some highlighting and link errors in the listener guides. Should I group some fixes into this PR for convenience or create a new one?
New PR. This one is already becoming fairly large.
Should listeners in the guide use generics? I recall you guys saying it would be removed, but shouldn't we put them in until it is?
@kyranet showed @vladfrangu how to make them work. I still have no idea how. If this is true however then I suppose we're keeping them. And in that case it would be good to add them.
Speaking of the listeners' guide, maybe "What are listeners" should be merged into "Creating your first listener"? Or I separate some precondition explaining into a "What are preconditions" for consistency
I prefer separate "what are" pages at the top of the collapsible group. It can be a short page with a quick overview of what they are for people who are new and so unfamiliar to the terms.
Lowercase starting comments in "Getting Started" = inconsistency = oh it hurts my brain :( Should I group some fixes into this PR for convenience or create a new one?
Group it with the other PR for listeners in a general fixes PR
The name of the section in commands is "Creating a basic command", but in the others, it's "Creating your first listeners/preconditions/arguments" = inconsistency = oh it hurts my brain :(
Ditto above. "Creating your own...." is better.
Basically, when you provide the generic, you don't get autocompletes for the params in the Try it! Make a messageCreate listener and try typing the message as a number |
Co-authored-by: Vlad Frangu <[email protected]>
Co-authored-by: Vlad Frangu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#97 has been merged and this PR has been rebased. Please migrate your <Tabs
for JS/ESM/TS to the next plugin based syntax
…00/website into feat/preconditionGuides
all my homies hate git |
…00/website into feat/preconditionGuides
…00/website into feat/preconditionGuides
what have i done |
Co-authored-by: Jeroen Claassens <[email protected]>
…00/website into feat/preconditionGuides
I was deliriously tired whilst writing these so don't expect them to be perfectly thorough, structurally sound, or grammatically correct. But, I thought it would be a good idea to get the ball rolling. Note that I made
Creating your first precondition
the first guide because it includes an intro to what preconditions are. I also made a new page,Reporting precondition failures
, the name of which is obviously eh at best. Brain vomit:In the cooldown section, should milliseconds be represented as10 * 1000
,10000
, or10_000
?USER
, because they might've not just used the command. Furthermore, it might be worth changing the "just" part as well, since the cooldown could be 1 hour for all we knowBucketScope
enum, or just stick with strings?CommandOptionsRunTypeEnum
enum, or just stick with strings?runIn
JSDoc description shows lowercase and invalid values. PR goes brrr?Closes #93
Edit by favna: striken through text is resolved