Skip to content

Commit

Permalink
fix: renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
RozmarinUS committed Jul 9, 2024
1 parent 7e3abae commit b3fdd48
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import { Deunionize } from 'telegraf/typings/core/helpers/deunionize';
* @returns The component param decorator.
*/
export const ComponentParam = createParamDecorator((data, ctx: ExecutionContext) => {
const nestcordContext = NestGramExecutionContext.create(ctx);
const nestgramContext = NestGramExecutionContext.create(ctx);
const context = ctx.getArgByIndex(0) as Context<Deunionize<Update>>;
const discovery = nestcordContext.getDiscovery();
const discovery = nestgramContext.getDiscovery();

if (!discovery.isInteractionComponent() ) {
return null;
Expand Down

0 comments on commit b3fdd48

Please sign in to comment.