2 Commits

Author SHA1 Message Date
jaron cef02241d6 fix typo in README example 2026-06-21 15:27:56 -05:00
jaron 565eece049 fixing some website css 2025-10-14 09:44:53 -05:00
2 changed files with 11 additions and 7 deletions
+3 -3
View File
@@ -112,9 +112,9 @@ You can also generate a hydration function that returns a type narrowing boolean
```typescript ```typescript
client.chatCommands.register('me', async (context: Context, _args: any[]) => { client.chatCommands.register('me', async (context: Context, _args: any[]) => {
// Hydrate the message id from the context // Hydrate the message id from the context
const hydrate = await context.hydrator(hydrated, [Expectation.Guild]); const hydrate = await context.hydrator(context, [Expectation.Guild]);
// Check if the object is hydrated // Check if the object is hydrated
const hasGuild = hydrate(hydrated); const hasGuild = hydrate(context);
if (hasGuild) { if (hasGuild) {
// Send a message stating the user that they are in a guild // Send a message stating the user that they are in a guild
@@ -223,4 +223,4 @@ const quotesCommandHandler = createCommandHandler({
client.chatCommands.register('quotes', quotesCommandHandler); client.chatCommands.register('quotes', quotesCommandHandler);
client.applicationCommands.register('quotes', ApplicationCommandType.Chat, quotesCommandHandler); client.applicationCommands.register('quotes', ApplicationCommandType.Chat, quotesCommandHandler);
``` ```
+8 -4
View File
@@ -175,7 +175,7 @@
} }
.pillars { .pillars {
padding: 6rem 12em; padding: 6rem 6em;
background: var(--gray-alpha-100); background: var(--gray-alpha-100);
min-height: 50vh; min-height: 50vh;
display: flex; display: flex;
@@ -226,7 +226,7 @@
} }
.hydrationSection { .hydrationSection {
padding: 6rem 12em; padding: 6rem 6em;
min-height: 50vh; min-height: 50vh;
display: flex; display: flex;
align-items: space; align-items: space;
@@ -252,12 +252,14 @@
.hydrationText { .hydrationText {
flex: 1; flex: 1;
/* padding: 2rem; */ /* padding: 2rem; */
min-width: 400px;
} }
.hydrationText h2 { .hydrationText h2 {
color: #ff0080; color: #ff0080;
margin: 0 0 1.5rem 0; margin: 0 0 1.5rem 0;
font-size: 2rem; font-size: 2rem;
min-width: 400px;
} }
.hydrationText p { .hydrationText p {
@@ -266,10 +268,11 @@
margin: 1rem 0; margin: 1rem 0;
font-size: 1.1rem; font-size: 1.1rem;
line-height: 1.6; line-height: 1.6;
min-width: 400px;
} }
.typeSection { .typeSection {
padding: 6rem 12em; padding: 6rem 6em;
min-height: 50vh; min-height: 50vh;
display: flex; display: flex;
align-items: space; align-items: space;
@@ -289,6 +292,7 @@
.typeText { .typeText {
flex: 1; flex: 1;
min-width: 400px;
} }
.typeCode { .typeCode {
@@ -322,7 +326,7 @@
} }
.installSection { .installSection {
padding: 6rem 12em; padding: 6rem 6em;
min-height: 30vh; min-height: 30vh;
display: flex; display: flex;
align-items: center; align-items: center;