/// <inheritdoc/>
        public override ModalCommandParameterBuilder SetParameterType(Type type)
        {
            if (typeof(IModal).IsAssignableFrom(type))
            {
                Modal = ModalUtils.GetOrAdd(type);
            }

            return(base.SetParameterType(type));
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        public override ModalCommandParameterBuilder SetParameterType(Type type)
        {
            if (typeof(IModal).IsAssignableFrom(type))
            {
                Modal = ModalUtils.GetOrAdd(type, Command.Module.InteractionService);
            }
            else
            {
                TypeReader = Command.Module.InteractionService.GetTypeReader(type);
            }

            return(base.SetParameterType(type));
        }