feat: precondition guides#91
feat: precondition guides#91favna merged 34 commits intosapphiredev:mainfrom Lioness100:feat/preconditionGuides
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.
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]>
…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 preconditionthe 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 knowBucketScopeenum, or just stick with strings?CommandOptionsRunTypeEnumenum, or just stick with strings?runInJSDoc description shows lowercase and invalid values. PR goes brrr?Closes #93
Edit by favna: striken through text is resolved