diff --git a/src/components/handler.ts b/src/components/handler.ts index f37340a..b482357 100644 --- a/src/components/handler.ts +++ b/src/components/handler.ts @@ -173,6 +173,7 @@ export class ComponentHandler extends BaseHandler { continue; } if (!(component instanceof ModalCommand || component instanceof ComponentCommand)) continue; + component.props ??= this.client.options.commands?.defaults?.props ?? {}; if (component instanceof ModalCommand) { component.onInternalError ??= this.client.options?.modals?.defaults?.onInternalError; component.onMiddlewaresError ??= this.client.options?.modals?.defaults?.onMiddlewaresError;