diff --git a/README.md b/README.md index 27a7d4d..dcc6515 100644 --- a/README.md +++ b/README.md @@ -112,9 +112,9 @@ You can also generate a hydration function that returns a type narrowing boolean ```typescript client.chatCommands.register('me', async (context: Context, _args: any[]) => { // 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 - const hasGuild = hydrate(hydrated); + const hasGuild = hydrate(context); if (hasGuild) { // 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.applicationCommands.register('quotes', ApplicationCommandType.Chat, quotesCommandHandler); -``` \ No newline at end of file +```